java.lang.Object
com.sun.xacml.attr.AttributeFactory
com.sun.xacml.attr.BaseAttributeFactory
com.sun.xacml.attr.StandardAttributeFactory
- public class StandardAttributeFactory
- extends BaseAttributeFactory
This factory supports the standard set of datatypes specified in XACML
1.0 and 1.1. It is the default factory used by the system, and imposes
a singleton pattern insuring that there is only ever one instance of
this class.
Note that because this supports only the standard datatypes, this
factory does not allow the addition of any other datatypes. If you call
addDatatype
on an instance of this class, an exception
will be thrown. If you need a standard factory that is modifiable, you
should create a new BaseAttributeFactory
(or some other
AttributeFactory
) and configure it with the standard
datatypes using addStandardDatatypes
(or, in the case of
BaseAttributeFactory
, by providing the datatypes in the
constructor).
- Since:
- 1.2
Constructor Summary |
private |
StandardAttributeFactory()
Private constructor that sets up proxies for all of the standard
datatypes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
factoryInstance
private static StandardAttributeFactory factoryInstance
supportedDatatypes
private static java.util.Map supportedDatatypes
logger
private static final java.util.logging.Logger logger
StandardAttributeFactory
private StandardAttributeFactory()
- Private constructor that sets up proxies for all of the standard
datatypes.
initDatatypes
private static void initDatatypes()
- Private initializer for the supported datatypes. This isn't called
until something needs these values, and is only called once.
getFactory
public static StandardAttributeFactory getFactory()
- Returns an instance of this factory. This method enforces a singleton
model, meaning that this always returns the same instance, creating
the factory if it hasn't been requested before. This is the default
model used by the
AttributeFactory
, ensuring quick
access to this factory.
getStandardDatatypes
public java.util.Map getStandardDatatypes()
- Returns the set of datatypes that this standard factory supports.
addDatatype
public void addDatatype(java.lang.String id,
AttributeProxy proxy)
- Throws an
UnsupportedOperationException
since you are not
allowed to modify what a standard factory supports.
- Overrides:
addDatatype
in class BaseAttributeFactory