Module io.helidon.pico.api
Package io.helidon.pico.api
Class AbstractPicoServicesConfig.Builder<B extends AbstractPicoServicesConfig.Builder<B,T>,T extends PicoServicesConfig>
java.lang.Object
io.helidon.pico.api.PicoServicesConfig
io.helidon.pico.api.AbstractPicoServicesConfig.Builder<B,T>
- Type Parameters:
B- the type of the builderT- the type of the built instance
- Direct Known Subclasses:
DefaultPicoServicesConfig.Builder
- Enclosing class:
AbstractPicoServicesConfig
public abstract static class AbstractPicoServicesConfig.Builder<B extends AbstractPicoServicesConfig.Builder<B,T>,T extends PicoServicesConfig>
extends PicoServicesConfig
implements Builder<B,T>
Fluent API builder for
T.-
Field Summary
Fields inherited from class io.helidon.pico.api.PicoServicesConfig
DEFAULT_ACTIVATION_DEADLOCK_TIMEOUT_IN_MILLIS, DEFAULT_ACTIVATION_LOGS, DEFAULT_PERMITS_DYNAMIC, DEFAULT_PERMITS_REFLECTION, DEFAULT_SERVICE_LOOKUP_CACHING, DEFAULT_SUPPORTS_COMPILE_TIME, DEFAULT_SUPPORTS_CONTEXTUAL_LOOKUP, DEFAULT_SUPPORTS_DYNAMIC, DEFAULT_SUPPORTS_JSR330, DEFAULT_SUPPORTS_JSR330_PRIVATES, DEFAULT_SUPPORTS_JSR330_STATICS, DEFAULT_SUPPORTS_REFLECTION, DEFAULT_USES_COMPILE_TIME_APPLICATIONS, DEFAULT_USES_COMPILE_TIME_MODULES, DEFAULT_USES_JSR330, FQN, KEY_ACTIVATION_DEADLOCK_TIMEOUT_IN_MILLIS, KEY_ACTIVATION_LOGS, KEY_PERMITS_DYNAMIC, KEY_PERMITS_REFLECTION, KEY_PROVIDER_NAME, KEY_PROVIDER_VERSION, KEY_SERVICE_LOOKUP_CACHING, KEY_SUPPORTS_COMPILE_TIME, KEY_SUPPORTS_CONTEXTUAL_LOOKUP, KEY_SUPPORTS_DYNAMIC, KEY_SUPPORTS_JSR330, KEY_SUPPORTS_JSR330_PRIVATES, KEY_SUPPORTS_JSR330_STATICS, KEY_SUPPORTS_REFLECTION, KEY_USES_COMPILE_TIME_APPLICATIONS, KEY_USES_COMPILE_TIME_MODULES, KEY_USES_JSR330, NAME, TAG_DEBUG, TAG_MODULE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccept and update from the provided value object.The provider implementation name.providerName(String val) Setter for 'providerName'.The provider implementation version.providerVersion(String val) Setter for 'providerVersion'.booleanFlag indicating whether the dependency injection model for theApplicationandActivatoris capable for being produced at compile-time, and therefore used/loaded during runtime operations.supportsCompileTime(boolean val) Setter for 'supportsCompileTime'.booleanFlag indicating whether contextual lookup is supported viaServices.contextualServices(InjectionPointInfo).supportsContextualLookup(boolean val) Setter for 'supportsContextualLookup'.booleanFlag indicating whether the services registry supports dynamic behavior (key isPicoServicesConfig.KEY_SUPPORTS_DYNAMIC).supportsDynamic(boolean val) Setter for 'supportsDynamic'.booleanFlag indicating whether jsr330 is supported by the provider implementation.supportsJsr330(boolean val) Setter for 'supportsJsr330'.booleanFlag indicating whether jsr330 is supported by the provider implementation for the use on private injection points.supportsJsr330Privates(boolean val) Setter for 'supportsJsr330Privates'.booleanFlag indicating whether jsr330 is supported by the provider implementation for the use on static injection points.supportsJsr330Statics(boolean val) Setter for 'supportsJsr330Statics'.booleanFlag indicating whether the reflection is supported.supportsReflection(boolean val) Setter for 'supportsReflection'.<T> voidvisitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx) Visits all attributes of io.helidon.pico.api.PicoServicesConfig, calling theAttributeVisitorfor each.Methods inherited from class io.helidon.pico.api.PicoServicesConfig
activationDeadlockDetectionTimeoutMillis, activationLogs, permitsDynamic, permitsReflection, serviceLookupCaching, usesCompileTimeApplications, usesCompileTimeModules, usesJsr330
-
Constructor Details
-
Builder
protected Builder()Fluent API builder constructor.
-
-
Method Details
-
providerName
Description copied from class:PicoServicesConfigThe provider implementation name.- Specified by:
providerNamein classPicoServicesConfig- Returns:
- the provider implementation name
-
providerVersion
Description copied from class:PicoServicesConfigThe provider implementation version.- Specified by:
providerVersionin classPicoServicesConfig- Returns:
- the provider implementation version
-
supportsDynamic
public boolean supportsDynamic()Description copied from class:PicoServicesConfigFlag indicating whether the services registry supports dynamic behavior (key isPicoServicesConfig.KEY_SUPPORTS_DYNAMIC). Note that if the provider does not support this flag then permitting it viaPicoServicesConfig.permitsDynamic()will have no affect. The default implementation of Pico supports dynamic, but does not permit it by default.- Specified by:
supportsDynamicin classPicoServicesConfig- Returns:
- the flag indicating whether the services registry supports dynamic updates of the service registry post Pico startup
-
supportsReflection
public boolean supportsReflection()Description copied from class:PicoServicesConfigFlag indicating whether the reflection is supported. Note that if the provider does not support this flag then permitting it viaPicoServicesConfig.permitsReflection()will have no affect. The default implementation of Pico supports reflection only during compile-time operations using the Pico maven-plugin.- Specified by:
supportsReflectionin classPicoServicesConfig- Returns:
- the flag indicating whether reflection is supported during runtime operations
-
supportsCompileTime
public boolean supportsCompileTime()Description copied from class:PicoServicesConfigFlag indicating whether the dependency injection model for theApplicationandActivatoris capable for being produced at compile-time, and therefore used/loaded during runtime operations.- Specified by:
supportsCompileTimein classPicoServicesConfig- Returns:
- the flag indicating whether the provider supports compile-time code generation of DI artifacts
-
supportsJsr330
public boolean supportsJsr330()Description copied from class:PicoServicesConfigFlag indicating whether jsr330 is supported by the provider implementation.- Specified by:
supportsJsr330in classPicoServicesConfig- Returns:
- the flag indicating whether the provider supports the jsr330 specification
-
supportsJsr330Statics
public boolean supportsJsr330Statics()Description copied from class:PicoServicesConfigFlag indicating whether jsr330 is supported by the provider implementation for the use on static injection points.- Specified by:
supportsJsr330Staticsin classPicoServicesConfig- Returns:
- the flag indicating whether the provider supports the jsr330 specification for the use of static injection points
-
supportsJsr330Privates
public boolean supportsJsr330Privates()Description copied from class:PicoServicesConfigFlag indicating whether jsr330 is supported by the provider implementation for the use on private injection points.- Specified by:
supportsJsr330Privatesin classPicoServicesConfig- Returns:
- the flag indicating whether the provider supports the jsr330 specification for the use of private injection points
-
supportsContextualLookup
public boolean supportsContextualLookup()Description copied from class:PicoServicesConfigFlag indicating whether contextual lookup is supported viaServices.contextualServices(InjectionPointInfo).- Specified by:
supportsContextualLookupin classPicoServicesConfig- Returns:
- the flag indicating whether the provider supports contextual lookup
-
providerName
Setter for 'providerName'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
providerVersion
Setter for 'providerVersion'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
supportsDynamic
Setter for 'supportsDynamic'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
supportsReflection
Setter for 'supportsReflection'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
supportsCompileTime
Setter for 'supportsCompileTime'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
supportsJsr330
Setter for 'supportsJsr330'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
supportsJsr330Statics
Setter for 'supportsJsr330Statics'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
supportsJsr330Privates
Setter for 'supportsJsr330Privates'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
supportsContextualLookup
Setter for 'supportsContextualLookup'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
accept
Accept and update from the provided value object.- Parameters:
val- the value object to copy from- Returns:
- this instance typed to correct type
-
visitAttributes
Visits all attributes of io.helidon.pico.api.PicoServicesConfig, calling theAttributeVisitorfor each.- Type Parameters:
T- type of the user defined context- Parameters:
visitor- the visitor called for each attributeuserDefinedCtx- any object you wish to pass to each visit call
-