Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.xacml.attr
Class StandardAttributeFactory  view StandardAttributeFactory download StandardAttributeFactory.java

java.lang.Object
  extended bycom.sun.xacml.attr.AttributeFactory
      extended bycom.sun.xacml.attr.BaseAttributeFactory
          extended bycom.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

Field Summary
private static StandardAttributeFactory factoryInstance
           
private static java.util.logging.Logger logger
           
private static java.util.Map supportedDatatypes
           
 
Fields inherited from class com.sun.xacml.attr.BaseAttributeFactory
 
Fields inherited from class com.sun.xacml.attr.AttributeFactory
 
Constructor Summary
private StandardAttributeFactory()
          Private constructor that sets up proxies for all of the standard datatypes.
 
Method Summary
 void addDatatype(java.lang.String id, AttributeProxy proxy)
          Throws an UnsupportedOperationException since you are not allowed to modify what a standard factory supports.
static StandardAttributeFactory getFactory()
          Returns an instance of this factory.
 java.util.Map getStandardDatatypes()
          Returns the set of datatypes that this standard factory supports.
private static void initDatatypes()
          Private initializer for the supported datatypes.
 
Methods inherited from class com.sun.xacml.attr.BaseAttributeFactory
createValue, createValue, createValue, createValue, getSupportedDatatypes
 
Methods inherited from class com.sun.xacml.attr.AttributeFactory
addAttributeProxy, createAttribute, createAttribute, createAttribute, createAttribute, getInstance, setDefaultFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factoryInstance

private static StandardAttributeFactory factoryInstance

supportedDatatypes

private static java.util.Map supportedDatatypes

logger

private static final java.util.logging.Logger logger
Constructor Detail

StandardAttributeFactory

private StandardAttributeFactory()
Private constructor that sets up proxies for all of the standard datatypes.

Method Detail

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