java.lang.Object
io.helidon.inject.tools.Options
Options that can be provided via -A (in annotation processing mode), or via system properties or env properties
if running normally.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Tag to accept this is a preview feature (so no warning is printed).static final String
Pre-creates a placeholder for anApplication
.static final String
Treat all super types as a contract for a given service type being added.static final String
Tag for putting Injection's annotation processing into debug mode.static final String
Identify invalid usage of themodule-info.java
for appropriate Injection references (the default is to fail).static final String
Identify whether any unsupported types should trigger annotation processing to keep going (the default is to fail).static final String
Identify the sidecar (module-info.java.inject) module file name or path.static final String
Identify whether any application scopes (from ee) is translated toSingleton
.static final String
Identify the module name being processed or the desired target module name. -
Method Summary
Modifier and TypeMethodDescriptionThis only supports the subset of options that Injection cares about, and should not be generally used for options.static void
init
(ProcessingEnvironment processingEnv) Initialize (applicable for annotation processing only).static boolean
isOptionEnabled
(String option) Only supports the subset of options that Injection cares about, and should not be generally used for options.
-
Field Details
-
TAG_DEBUG
Tag for putting Injection's annotation processing into debug mode.- See Also:
-
TAG_ACCEPT_PREVIEW
Tag to accept this is a preview feature (so no warning is printed).- See Also:
-
TAG_AUTO_ADD_NON_CONTRACT_INTERFACES
Treat all super types as a contract for a given service type being added.- See Also:
-
TAG_APPLICATION_PRE_CREATE
Pre-creates a placeholder for anApplication
.- See Also:
-
TAG_MODULE_NAME
Identify the module name being processed or the desired target module name.- See Also:
-
TAG_INJECTION_MODULE_NAME
Identify the sidecar (module-info.java.inject) module file name or path.- See Also:
-
TAG_MAP_APPLICATION_TO_SINGLETON_SCOPE
Identify whether any application scopes (from ee) is translated toSingleton
.- See Also:
-
TAG_IGNORE_UNSUPPORTED_ANNOTATIONS
Identify whether any unsupported types should trigger annotation processing to keep going (the default is to fail).- See Also:
-
TAG_IGNORE_MODULE_USAGE
Identify invalid usage of themodule-info.java
for appropriate Injection references (the default is to fail).- See Also:
-
-
Method Details
-
init
Initialize (applicable for annotation processing only).- Parameters:
processingEnv
- the processing env
-
isOptionEnabled
Only supports the subset of options that Injection cares about, and should not be generally used for options.- Parameters:
option
- the key (assumed to be meaningful to this class)- Returns:
- true if the option is enabled
-
getOption
This only supports the subset of options that Injection cares about, and should not be generally used for options.- Parameters:
option
- the key (assumed to be meaningful to this class)- Returns:
- the option value
-