SyntheticComponents#addBean(Class).
| Modifier and Type | Method and Description |
|---|---|
| public SyntheticBeanBuilder | Returns: thisSyntheticBeanBuilderwhether this synthetic bean should be an alternative isAlternative)Marks this synthetic bean as an alternative if desired. |
| public SyntheticBeanBuilder | Returns: thisSyntheticBeanBuilderthe creation function class, must not be creatorClass)nullSets the class of the synthetic bean creation function. |
| public SyntheticBeanBuilder | Returns: thisSyntheticBeanBuilderthe destruction function class, must not be disposerClass)nullSets the class of the synthetic bean destruction function. |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | Returns: thisSyntheticBeanBuilderthe priority of this synthetic bean priority)Sets a priority of this synthetic bean. |
| public SyntheticBeanBuilder | Returns: thisSyntheticBeanBuilderthe type of the marker annotation, must not be annotationType)nullAdds a marker annotation of given type to the set of qualifiers of this synthetic bean. |
| public SyntheticBeanBuilder | Returns: thisSyntheticBeanBuilderthe annotation, must not be qualifierAnnotation)nullAdds given annotation to the set of qualifiers of this synthetic bean. |
| public SyntheticBeanBuilder | Returns: thisSyntheticBeanBuilderthe annotation, must not be qualifierAnnotation)nullAdds given annotation to the set of qualifiers of this synthetic bean. |
| public SyntheticBeanBuilder | Returns: thisSyntheticBeanBuilderthe scope type, must not be scopeAnnotation)nullSets the scope of this synthetic bean to given scope type. |
| public SyntheticBeanBuilder | Returns: thisSyntheticBeanBuilderthe stereotype, must not be stereotypeAnnotation)nullAdds |
| public SyntheticBeanBuilder | Returns: thisSyntheticBeanBuilderthe stereotype, must not be stereotypeAnnotation)nullAdds |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | |
| public SyntheticBeanBuilder | Returns: thisSyntheticBeanBuilderthe parameter key, must not be key, AnnotationInfo nullthe parameter value value)Adds an annotation-valued parameter to the parameter map. |
| public SyntheticBeanBuilder | Returns: thisSyntheticBeanBuilderthe parameter key, must not be key, Annotation nullthe parameter value value)Adds an annotation-valued parameter to the parameter map. |
| public SyntheticBeanBuilder | Returns: thisSyntheticBeanBuilderthe parameter key, must not be key, AnnotationInfo[] nullthe parameter value value)Adds an annotation array-valued parameter to the parameter map. |
| public SyntheticBeanBuilder | Returns: thisSyntheticBeanBuilderthe parameter key, must not be key, Annotation[] nullthe parameter value value)Adds an annotation array-valued parameter to the parameter map. |
| public SyntheticBeanBuilder | Returns: thisSyntheticBeanBuilderthe parameter key, must not be key, InvokerInfo nullthe parameter value value)Adds an invoker-valued parameter to the parameter map. |
| public SyntheticBeanBuilder | Returns: thisSyntheticBeanBuilderthe parameter key, must not be key, InvokerInfo[] nullthe parameter value value)Adds an invoker array-valued parameter to the parameter map. |
| alternative | back to summary |
|---|---|
| public SyntheticBeanBuilder Marks this synthetic bean as an alternative if desired. To make this synthetic bean
an enabled alternative, call both If this synthetic bean is an alternative, not setting a priority means that it is not enabled, which is equivalent to not registering it at all. If not called, this synthetic bean will not be an alternative.
| |
| createWith | back to summary |
|---|---|
| public SyntheticBeanBuilder Sets the class of the synthetic bean creation function.
CDI container will create an instance of the creation function every time when it needs
to obtain an instance of the synthetic bean. The class must be If not called, the synthetic bean registration will fail.
| |
| disposeWith | back to summary |
|---|---|
| public SyntheticBeanBuilder Sets the class of the synthetic bean destruction function.
CDI container will create an instance of the destruction function every time when it needs
to destruction an instance of the synthetic bean. The class must be If not called, a noop destruction function will be used.
| |
| name | back to summary |
|---|---|
| public SyntheticBeanBuilder Sets the bean name of this synthetic bean. If If not called, this synthetic bean will not have a name.
| |
| priority | back to summary |
|---|---|
| public SyntheticBeanBuilder Sets a priority of this synthetic bean. To make this synthetic bean an enabled alternative,
call both If this synthetic bean is an alternative, not setting a priority means that it is not enabled, which is equivalent to not registering it at all. If not called, this synthetic bean will not have a priority.
| |
| qualifier | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds a marker annotation of given type to the set of qualifiers of this synthetic bean. This method may be called multiple times to add multiple qualifiers.
If not called, this synthetic bean will have the
| |
| qualifier | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds given annotation to the set of qualifiers of this synthetic bean. This method may be called multiple times to add multiple qualifiers.
If not called, this synthetic bean will have the
| |
| qualifier | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds given annotation to the set of qualifiers of this synthetic bean. This method may be called multiple times to add multiple qualifiers.
If not called, this synthetic bean will have the
| |
| scope | back to summary |
|---|---|
| public SyntheticBeanBuilder Sets the scope of this synthetic bean to given scope type.
If not called, and if no stereotype is added that defines a scope,
this synthetic bean will be
| |
| stereotype | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds If not called, this synthetic bean will have no stereotype.
| |
| stereotype | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds If not called, this synthetic bean will have no stereotype.
| |
| type | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds
If not called, the set of bean types of this synthetic bean will be a singleton set
containing
| |
| type | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds
If not called, the set of bean types of this synthetic bean will be a singleton set
containing
| |
| type | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds
If not called, the set of bean types of this synthetic bean will be a singleton set
containing
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds a
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds a
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds an
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds an
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds a
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds a
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds a
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds a
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds a
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds a
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds an enum-valued parameter to the parameter map. The parameter map is passed to the creation and destruction functions when a bean instance is created/destroyed.
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds an enum array-valued parameter to the parameter map. The parameter map is passed to the creation and destruction functions when a bean instance is created/destroyed.
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds a
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds a
When looked up from the parameter map in the creation/destruction function, the value will be
an instance of
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds a
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds a
When looked up from the parameter map in the creation/destruction function, the values will be
instances of
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds an annotation-valued parameter to the parameter map. The parameter map is passed to the creation and destruction functions when a bean instance is created/destroyed.
When looked up from the parameter map in the creation/destruction function, the value will be
an instance of the annotation type, not an
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds an annotation-valued parameter to the parameter map. The parameter map is passed to the creation and destruction functions when a bean instance is created/destroyed.
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds an annotation array-valued parameter to the parameter map. The parameter map is passed to the creation and destruction functions when a bean instance is created/destroyed.
When looked up from the parameter map in the creation/destruction function, the values will be
instances of the corresponding annotation types, not
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds an annotation array-valued parameter to the parameter map. The parameter map is passed to the creation and destruction functions when a bean instance is created/destroyed.
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds an invoker-valued parameter to the parameter map. The parameter map is passed to the creation and destruction functions when a bean instance is created/destroyed.
When looked up from the parameter map in the creation/destruction function, the value will be
an instance of
| |
| withParam | back to summary |
|---|---|
| public SyntheticBeanBuilder Adds an invoker array-valued parameter to the parameter map. The parameter map is passed to the creation and destruction functions when a bean instance is created/destroyed.
When looked up from the parameter map in the creation/destruction function, the values will be
instances of
| |