Package org.ow2.authzforce.core.pdp.api
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).
-
-
Field Summary
-
Fields inherited from interface org.ow2.authzforce.core.pdp.api.PdpExtension
AUTHZFORCE_EXTENSION_PREFIX
-
-
Constructor Summary
Constructors Constructor Description FactoryBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract CloseableNamedAttributeProvider.DependencyAwareFactory
getInstance(CONF_T configuration, EnvironmentProperties environmentProperties)
Creates an attribute-dependency-aware AttributeProvider factory by inferring attribute dependencies (required attributes) fromconf
.-
Methods inherited from class org.ow2.authzforce.core.pdp.api.JaxbBoundPdpExtension
getId, getJaxbClass
-
-
-
-
Method Detail
-
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) fromconf
.- 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}
-
-