Class DefaultConfigurationBuilder.ConfigurationDeclaration

  • All Implemented Interfaces:
    BeanDeclaration
    Enclosing class:
    DefaultConfigurationBuilder

    public static class DefaultConfigurationBuilder.ConfigurationDeclaration
    extends XMLBeanDeclaration

    A specialized BeanDeclaration implementation that represents the declaration of a configuration source.

    Instances of this class are able to extract all information about a configuration source from the configuration definition file. The declaration of a configuration source is very similar to a bean declaration processed by XMLBeanDeclaration. There are very few differences, e.g. some reserved attributes like optional and at and the fact that a bean factory is never needed.

    • Method Detail

      • getAt

        public java.lang.String getAt()
        Returns the value of the at attribute.
        Returns:
        the value of the at attribute (can be null)
      • isOptional

        public boolean isOptional()
        Returns a flag whether this is an optional configuration.
        Returns:
        a flag if this declaration points to an optional configuration
      • isForceCreate

        public boolean isForceCreate()
        Returns a flag whether this configuration should always be created and added to the resulting combined configuration. This flag is evaluated only for optional configurations whose normal creation has caused an error. If for such a configuration the forceCreate attribute is set and the corresponding configuration provider supports this mode, an empty configuration will be created and added to the resulting combined configuration.
        Returns:
        the value of the forceCreate attribute
        Since:
        1.4
      • interpolate

        protected java.lang.Object interpolate​(java.lang.Object value)
        Performs interpolation. This implementation will delegate interpolation to the configuration builder, which takes care that the currently constructed configuration is taken into account, too.
        Overrides:
        interpolate in class XMLBeanDeclaration
        Parameters:
        value - the value to be interpolated
        Returns:
        the interpolated value