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

Quick Search    Search Deep

com.sun.xacml.combine
Class StandardCombiningAlgFactory  view StandardCombiningAlgFactory download StandardCombiningAlgFactory.java

java.lang.Object
  extended bycom.sun.xacml.combine.CombiningAlgFactory
      extended bycom.sun.xacml.combine.BaseCombiningAlgFactory
          extended bycom.sun.xacml.combine.StandardCombiningAlgFactory

public class StandardCombiningAlgFactory
extends BaseCombiningAlgFactory

This factory supports the standard set of algorithms 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 algorithms, this factory does not allow the addition of any other algorithms. If you call addAlgorithm 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 BaseCombiningAlgFactory (or some other CombiningAlgFactory) and configure it with the standard algorithms using getStandardAlgorithms (or, in the case of BaseAttributeFactory, by providing the datatypes in the constructor).

Since:
1.2

Field Summary
private static StandardCombiningAlgFactory factoryInstance
           
private static java.util.logging.Logger logger
           
private static java.util.Set supportedAlgorithms
           
 
Fields inherited from class com.sun.xacml.combine.BaseCombiningAlgFactory
 
Fields inherited from class com.sun.xacml.combine.CombiningAlgFactory
 
Constructor Summary
private StandardCombiningAlgFactory()
          Default constructor.
 
Method Summary
 void addAlgorithm(CombiningAlgorithm alg)
          Throws an UnsupportedOperationException since you are not allowed to modify what a standard factory supports.
static StandardCombiningAlgFactory getFactory()
          Returns an instance of this factory.
 java.util.Set getStandardAlgorithms()
          Returns the set of algorithms that this standard factory supports.
private static void initAlgorithms()
          Private initializer for the supported algorithms.
 
Methods inherited from class com.sun.xacml.combine.BaseCombiningAlgFactory
createAlgorithm, getSupportedAlgorithms
 
Methods inherited from class com.sun.xacml.combine.CombiningAlgFactory
addCombiningAlg, createCombiningAlg, 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 StandardCombiningAlgFactory factoryInstance

supportedAlgorithms

private static java.util.Set supportedAlgorithms

logger

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

StandardCombiningAlgFactory

private StandardCombiningAlgFactory()
Default constructor.

Method Detail

initAlgorithms

private static void initAlgorithms()
Private initializer for the supported algorithms. This isn't called until something needs these values, and is only called once.


getFactory

public static StandardCombiningAlgFactory 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 CombiningAlgFactory, ensuring quick access to this factory.


getStandardAlgorithms

public java.util.Set getStandardAlgorithms()
Returns the set of algorithms that this standard factory supports.


addAlgorithm

public void addAlgorithm(CombiningAlgorithm alg)
Throws an UnsupportedOperationException since you are not allowed to modify what a standard factory supports.

Overrides:
addAlgorithm in class BaseCombiningAlgFactory