Interface InjectionPointConfigurator
-
public interface InjectionPointConfigurator
This API is an helper to configure an existingInjectionPoint
instance. CDI container must provides an implementation of this interface. This builder is not thread safe and shall not be used concurrently.CDI Lite implementations are not required to provide support for Portable Extensions.
- Since:
- 2.0
- Author:
- Antoine Sabot-Durand
- See Also:
ProcessInjectionPoint.configureInjectionPoint()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InjectionPointConfigurator
addQualifier(Annotation qualifier)
Add the qualifier to the InjectionPoint to buildInjectionPointConfigurator
addQualifiers(Annotation... qualifiers)
Add all the qualifiers to the InjectionPoint to buildInjectionPointConfigurator
addQualifiers(Set<Annotation> qualifiers)
Add all the qualifiers to the InjectionPoint to buildInjectionPointConfigurator
delegate(boolean delegate)
Change the delegate status of the built InjectionPoint.InjectionPointConfigurator
qualifiers(Annotation... qualifiers)
Replace all qualifiers.InjectionPointConfigurator
qualifiers(Set<Annotation> qualifiers)
Replace all qualifiers.InjectionPointConfigurator
transientField(boolean trans)
Change the transient status of the built InjectionPoint.InjectionPointConfigurator
type(Type requiredType)
Set the requiredType
(that will be used during typesafe resolution) of the InjectionPoint to build.
-
-
-
Method Detail
-
type
InjectionPointConfigurator type(Type requiredType)
Set the requiredType
(that will be used during typesafe resolution) of the InjectionPoint to build.- Parameters:
requiredType
- for the InjectionPoint to build- Returns:
- self
-
addQualifier
InjectionPointConfigurator addQualifier(Annotation qualifier)
Add the qualifier to the InjectionPoint to build- Parameters:
qualifier
- the qualifier to add- Returns:
- self
-
addQualifiers
InjectionPointConfigurator addQualifiers(Annotation... qualifiers)
Add all the qualifiers to the InjectionPoint to build- Parameters:
qualifiers
- a varargs or array of qualifiers to add- Returns:
- self
-
addQualifiers
InjectionPointConfigurator addQualifiers(Set<Annotation> qualifiers)
Add all the qualifiers to the InjectionPoint to build- Parameters:
qualifiers
- a Set of qualifiers to add- Returns:
- self
-
qualifiers
InjectionPointConfigurator qualifiers(Annotation... qualifiers)
Replace all qualifiers.- Parameters:
qualifiers
- a varargs or array of qualifiers to replace to existing ones- Returns:
- self
-
qualifiers
InjectionPointConfigurator qualifiers(Set<Annotation> qualifiers)
Replace all qualifiers.- Parameters:
qualifiers
- a Set of qualifiers to replace to existing ones- Returns:
- self
-
delegate
InjectionPointConfigurator delegate(boolean delegate)
Change the delegate status of the built InjectionPoint. By default the InjectionPoint is not a delegate one.- Parameters:
delegate
- boolean to define or undefine the delegate nature of the configured InjectionPoint- Returns:
- self
-
transientField
InjectionPointConfigurator transientField(boolean trans)
Change the transient status of the built InjectionPoint. By default the InjectionPoint is not transient.- Parameters:
trans
- boolean to define or undefine the transient nature of the configured InjectionPoint- Returns:
- self
-
-