public interface BeansDescriptor extends Descriptor, DescriptorNamespace<BeansDescriptor>, BeansCommonDescriptor<BeansDescriptor>
This deployment descriptor provides the functionalities as described in the specification
Example:
BeansDescriptor descriptor = Descriptors.create(BeansDescriptor.class);
Modifier and Type | Method and Description |
---|---|
BeansDescriptor |
beanDiscoveryMode(String beanDiscoveryMode)
Sets the
bean-discovery-mode attribute |
Alternatives<BeansDescriptor> |
createAlternatives()
Creates a new
alternatives element |
Decorators<BeansDescriptor> |
createDecorators()
Creates a new
decorators element |
Interceptors<BeansDescriptor> |
createInterceptors()
Creates a new
interceptors element |
Scan<BeansDescriptor> |
createScan()
Creates a new
scan element |
List<Alternatives<BeansDescriptor>> |
getAllAlternatives()
Returns all
alternatives elements |
List<Decorators<BeansDescriptor>> |
getAllDecorators()
Returns all
decorators elements |
List<Interceptors<BeansDescriptor>> |
getAllInterceptors()
Returns all
interceptors elements |
List<Scan<BeansDescriptor>> |
getAllScan()
Returns all
scan elements |
String |
getBeanDiscoveryMode()
Returns the
bean-discovery-mode attribute |
Alternatives<BeansDescriptor> |
getOrCreateAlternatives()
If not already created, a new
alternatives element will be created and returned. |
Decorators<BeansDescriptor> |
getOrCreateDecorators()
If not already created, a new
decorators element will be created and returned. |
Interceptors<BeansDescriptor> |
getOrCreateInterceptors()
If not already created, a new
interceptors element will be created and returned. |
Scan<BeansDescriptor> |
getOrCreateScan()
If not already created, a new
scan element will be created and returned. |
String |
getVersion()
Returns the
version attribute |
BeansDescriptor |
removeAllAlternatives()
Removes all
alternatives elements |
BeansDescriptor |
removeAllDecorators()
Removes all
decorators elements |
BeansDescriptor |
removeAllInterceptors()
Removes all
interceptors elements |
BeansDescriptor |
removeAllScan()
Removes all
scan elements |
BeansDescriptor |
removeBeanDiscoveryMode()
Removes the
bean-discovery-mode attribute |
BeansDescriptor |
removeVersion()
Removes the
version attribute |
BeansDescriptor |
version(String version)
Sets the
version attribute |
addDefaultNamespaces, addNamespace, getNamespaces, removeAllNamespaces
exportAsString, exportTo, getDescriptorName
Interceptors<BeansDescriptor> getOrCreateInterceptors()
interceptors
element will be created and returned.
Otherwise, the first existing interceptors
element will be returned.interceptors
Interceptors<BeansDescriptor> createInterceptors()
interceptors
elementInterceptors
List<Interceptors<BeansDescriptor>> getAllInterceptors()
interceptors
elementsinterceptors
BeansDescriptor removeAllInterceptors()
interceptors
elementsInterceptors
Decorators<BeansDescriptor> getOrCreateDecorators()
decorators
element will be created and returned.
Otherwise, the first existing decorators
element will be returned.decorators
Decorators<BeansDescriptor> createDecorators()
decorators
elementDecorators
List<Decorators<BeansDescriptor>> getAllDecorators()
decorators
elementsdecorators
BeansDescriptor removeAllDecorators()
decorators
elementsDecorators
Alternatives<BeansDescriptor> getOrCreateAlternatives()
alternatives
element will be created and returned.
Otherwise, the first existing alternatives
element will be returned.alternatives
Alternatives<BeansDescriptor> createAlternatives()
alternatives
elementAlternatives
List<Alternatives<BeansDescriptor>> getAllAlternatives()
alternatives
elementsalternatives
BeansDescriptor removeAllAlternatives()
alternatives
elementsAlternatives
Scan<BeansDescriptor> getOrCreateScan()
scan
element will be created and returned.
Otherwise, the first existing scan
element will be returned.scan
Scan<BeansDescriptor> createScan()
scan
elementScan
List<Scan<BeansDescriptor>> getAllScan()
scan
elementsscan
BeansDescriptor removeAllScan()
scan
elementsScan
BeansDescriptor version(String version)
version
attributeversion
- the value for the attribute version
BeansDescriptor
String getVersion()
version
attributeversion
BeansDescriptor removeVersion()
version
attributeBeansDescriptor
BeansDescriptor beanDiscoveryMode(String beanDiscoveryMode)
bean-discovery-mode
attributebeanDiscoveryMode
- the value for the attribute bean-discovery-mode
BeansDescriptor
String getBeanDiscoveryMode()
bean-discovery-mode
attributebean-discovery-mode
BeansDescriptor removeBeanDiscoveryMode()
bean-discovery-mode
attributeBeansDescriptor
Copyright © 2024 JBoss by Red Hat. All rights reserved.