Container Configuration

The Container Configuration File is used to bootstrap the YAAFI container.

Specification

Item Datatype Cardinality Description
containerType String [0|1] The type of Avalon container where YAAFI is instantiated, either "phoenix", "fortress" or "merlin". If no value is defined then merlin will be used.
containerClazzName String [0|1] The class name of the YAAFI container to be instantiated. This feature allows to use inheritance for customizing the container functionality.
componentRoles Tree [0|1] Information about the role configuration file
componentRoles/location String [0|1] The location of the component role file
componentRoles/isEncrypted String [0|1] Is the component role file encrypted? The possible values are ["true"|"false"|"auto"]
componentConfiguration Tree [0|1] Information about the component configuration file
componentConfiguration/location String [0|1] The location of the component configuration file
componentConfiguration/isEncrypted String [0|1] Is the component configuration file encrypted? The possible values are ["true"|"false"|"auto"]
componentConfigurationProperties Tree [0|1] Information about the component configuration proeprties used to resolve variables in the componentConfiguration
componentConfigurationProperties/location String [0|1] The location of the component configuration property file. The default value is "/componentConfiguration.properties"
componentConfigurationProperties/resolver String [0|1] The resolver class name to load the componentConfiguration.properties.
parameters Tree [0|1] Information about the parameters file
parameters/location String [0|1] The location of the parameters file
parameters/isEncrypted String [0|1] Is the parameters file encrypted? The possible values are ["true"|"false"|"auto"]
hasDynamicProxies Boolean [true|false] Enable the usage of dynamic proxies for the whole container. When the no dynamic proxies are used no interceptors will be installed.
interceptors Tree [0|1] Contains a list of container specific interceptors
interceptors/interceptor String [0..n] Contains the service name of an interceptor

Example 1

          

<fulcrum-yaafi>
  <containerType>phoenix</containerType
  <containerClazzName>org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl</containerClazzName>
  <componentRoles>
    <location>./src/test/TestRoleConfig.xml</location>
    <isEncrypted>false</isEncrypted>
  </componentRoles>
  <componentConfiguration>
    <location>./src/test/TestComponentConfig.xml</location>
    <isEncrypted>false</isEncrypted>
  </componentConfiguration>
  <parameters>
    <location>./src/test/TestParameters.properties</location>
    <isEncrypted>false</isEncrypted>
  </parameters>
</fulcrum-yaafi>
          
        

Example 2

          
<fulcrum-yaafi>
  <componentRoles>
    <location>./src/test/componentRoles.xml</location>
  </componentRoles>
  <componentConfiguration>
    <location>./src/test/componentConfiguration.xml</location>
  </componentConfiguration>
  <interceptors>
    <interceptor>org.apache.fulcrum.yaafi.interceptor.performance.PerformanceInterceptorService</interceptor>
    <interceptor>org.apache.fulcrum.yaafi.interceptor.logging.LoggingInterceptorService</interceptor>
  </interceptors>
</fulcrum-yaafi>