Interface BeansXml


public interface BeansXml
Representation of parsed beans.xml file.
  • Field Details

    • EMPTY_BEANS_XML

      static final BeansXml EMPTY_BEANS_XML
      Empty beans.xml
  • Method Details

    • getEnabledAlternativeStereotypes

      List<Metadata<String>> getEnabledAlternativeStereotypes()
      Returns list of enabled alternative stereotypes
      Returns:
      List of enabled alternatives stereotypes; can be empty but never null
    • getEnabledAlternativeClasses

      List<Metadata<String>> getEnabledAlternativeClasses()
      Returns list of enabled alternative classes
      Returns:
      List of enabled alternative classes; can be empty but never null
    • getEnabledDecorators

      List<Metadata<String>> getEnabledDecorators()
      Returns list of enabled decorators
      Returns:
      List of enabled decorators; can be empty but never null
    • getEnabledInterceptors

      List<Metadata<String>> getEnabledInterceptors()
      Returns list of enabled interceptors
      Returns:
      List of enabled interceptors; can be empty but never null
    • getScanning

      Scanning getScanning()
      Returns:
      Initialized Scanning instance or Scanning.EMPTY_SCANNING if empty. Never null.
    • getUrl

      URL getUrl()
      Returns the URL of this beans.xml. Can be null in certain including but not limited to EMPTY_BEANS_XML and synthetic bean archives in Weld SE
      Returns:
      URL of this beans.xml, or null
    • getBeanDiscoveryMode

      BeanDiscoveryMode getBeanDiscoveryMode()
      Note that since CDI 4.0, this method returns BeanDiscoveryMode.ANNOTATED if the file does not declare discovery mode attribute.
      Returns:
      The value of the bean-discovery-mode attribute or BeanDiscoveryMode.ANNOTATED if the file does not contain the bean-discovery-mode attribute.
    • getVersion

      String getVersion()
      Returns:
      the value of the version attribute or null if the version is not explicitly specified
    • isTrimmed

      boolean isTrimmed()
      Returns:
      true if the trim element is specified
      Since:
      3.0