Class CloseableNamedAttributeProvider.FactoryBuilder<CONF_T extends org.ow2.authzforce.xmlns.pdp.ext.AbstractAttributeProvider>

java.lang.Object
org.ow2.authzforce.core.pdp.api.JaxbBoundPdpExtension<CONF_T>
org.ow2.authzforce.core.pdp.api.CloseableNamedAttributeProvider.FactoryBuilder<CONF_T>
Type Parameters:
CONF_T - type of configuration (XML-schema-derived) This class follows the Step Factory Pattern to guide clients through the creation of the object in a particular sequence of method calls:

http://rdafbn.blogspot.fr/2012/07/step-builder-pattern_28.html

All Implemented Interfaces:
PdpExtension
Enclosing interface:
CloseableNamedAttributeProvider

public abstract static class CloseableNamedAttributeProvider.FactoryBuilder<CONF_T extends org.ow2.authzforce.xmlns.pdp.ext.AbstractAttributeProvider> extends JaxbBoundPdpExtension<CONF_T>
Builder that creates a dependency-aware AttributeProvider factory from parsing the attribute dependencies (attributes on which the Providers created by this factory will depend on to find their own supported attributes) declared in the XML configuration (possibly dynamic).
  • Constructor Details

    • FactoryBuilder

      public FactoryBuilder()
  • Method Details

    • getInstance

      public abstract CloseableNamedAttributeProvider.DependencyAwareFactory getInstance(CONF_T configuration, EnvironmentProperties environmentProperties) throws IllegalArgumentException
      Creates an attribute-dependency-aware AttributeProvider factory by inferring attribute dependencies (required attributes) from conf.
      Parameters:
      configuration - configuration, that may define what attributes are required (dependency attributes)
      environmentProperties - global PDP configuration environment properties
      Returns:
      a factory aware of dependencies (required attributes) possibly inferred from input conf
      Throws:
      IllegalArgumentException - invalid {code configuration}