1 package org.onap.policy.xacml.api.pap;
3 import java.util.Properties;
5 import com.att.research.xacml.api.pap.PAPException;
6 import com.att.research.xacml.util.FactoryException;
7 import com.att.research.xacml.util.FactoryFinder;
9 public abstract class ONAPPapEngineFactory{
12 * Creates a new <code>PAPEngineFactory</code> instance using the given class name and the default thread class loader.
14 * @param factoryClassName the <code>String</code> name of the factory class to instantiate
15 * @return an instance of an object that extends <code>ONAPPapEngineFactory</code> to use in creating <code>PAPPolicyEngine</code> objects.
17 public static ONAPPapEngineFactory newInstance(String factoryClassName) throws FactoryException {
18 return FactoryFinder.newInstance(factoryClassName, ONAPPapEngineFactory.class, null, true);
22 * Creates a new <code>PAPPolicyEngine</code> based on the configured <code>ONAPPapEngineFactory</code>.
24 * @return a new <code>PAPPolicyEngine</code>
25 * @throws PAPException
27 public abstract PAPPolicyEngine newEngine() throws FactoryException, PAPException;
30 * Creates a new <code>PAPPolicyEngine</code> based on the configured <code>ONAPPapEngineFactory</code>.
32 * @return a new <code>PAPPolicyEngine</code>
33 * @throws PAPException
35 public abstract PAPPolicyEngine newEngine(Properties properties) throws FactoryException, PAPException;