Package org.jboss.weld.bootstrap.spi
Interface BeansXml
public interface BeansXml
Representation of parsed
beans.xml file.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionNote that since CDI 4.0, this method returnsBeanDiscoveryMode.ANNOTATEDif the file does not declare discovery mode attribute.Returns list of enabled alternative classesReturns list of enabled alternative stereotypesReturns list of enabled decoratorsReturns list of enabled interceptorsgetUrl()Returns theURLof thisbeans.xml.boolean
-
Field Details
-
EMPTY_BEANS_XML
Emptybeans.xml
-
-
Method Details
-
getEnabledAlternativeStereotypes
Returns list of enabled alternative stereotypes- Returns:
Listof enabled alternatives stereotypes; can be empty but nevernull
-
getEnabledAlternativeClasses
Returns list of enabled alternative classes- Returns:
Listof enabled alternative classes; can be empty but nevernull
-
getEnabledDecorators
Returns list of enabled decorators- Returns:
Listof enabled decorators; can be empty but nevernull
-
getEnabledInterceptors
Returns list of enabled interceptors- Returns:
Listof enabled interceptors; can be empty but nevernull
-
getScanning
Scanning getScanning()- Returns:
- Initialized
Scanninginstance orScanning.EMPTY_SCANNINGif empty. Never null.
-
getUrl
URL getUrl()Returns theURLof thisbeans.xml. Can benullin certain including but not limited toEMPTY_BEANS_XMLand synthetic bean archives in Weld SE- Returns:
URLof thisbeans.xml, ornull
-
getBeanDiscoveryMode
BeanDiscoveryMode getBeanDiscoveryMode()Note that since CDI 4.0, this method returnsBeanDiscoveryMode.ANNOTATEDif the file does not declare discovery mode attribute.- Returns:
- The value of the
bean-discovery-modeattribute orBeanDiscoveryMode.ANNOTATEDif the file does not contain thebean-discovery-modeattribute.
-
getVersion
String getVersion()- Returns:
- the value of the
versionattribute or null if the version is not explicitly specified
-
isTrimmed
boolean isTrimmed()- Returns:
- true if the
trimelement is specified - Since:
- 3.0
-