/** * Creates an instance of the <code>DataTypeFactory</code> using default configuration information. * * @param properties * @return the default <code>DataTypeFactory</code> * @throws FactoryException */ public static DataTypeFactory newInstance(Properties properties) throws FactoryException { return FactoryFinder.find(FACTORYID, DEFAULT_FACTORY_CLASSNAME, DataTypeFactory.class, properties); }
/** * Gets an instance of the <code>TraceEngineFactory</code> class using the given <code>String</code> class name, and the standard * <code>ClassLoader</code>> * * @param className the <code>String</code> name of the <code>Class</code> extending <code>TraceEngineFactory</code> to load * @return an instance of the <code>TraceEngineFactory</code> * @throws FactoryException if there is an error loading the <code>TraceEngineFactory</code> class or creating an instance from it. */ public static TraceEngineFactory newInstance(String className) throws FactoryException { return FactoryFinder.newInstance(className, TraceEngineFactory.class, null, true); }
/** * Used only when we want just xacml.rootPolicies and xacml.referencedPolicies without any ".url" entries. * * @return * @throws Exception */ public static Properties getPolicyProperties() throws Exception { return getPolicyProperties(XACMLProperties.getPolicyProperties(), false); }
/** * Saves the given callback object then calls the scan() method. * * @param cb * @return */ public Object scan(Callback cb) { this.callback = cb; return this.scan(); }
/** * Creates a new <code>PAPEngineFactory</code> instance by examining initialization resources from * various places to determine the class to instantiate and return. * * @return an instance of an object that extends <code>PAPEngineFactory</code> to use in creating <code>PAPEngine</code> objects. * @throws FactoryException */ public static PAPEngineFactory newInstance(Properties properties) throws FactoryException { return FactoryFinder.find(FACTORYID, DEFAULT_FACTORY_CLASSNAME, PAPEngineFactory.class, properties); }
/** * Creates an instance of the <code>FunctionDefinitionFactory</code> using the given class name. * * @param className the <code>String</code> class name of the <code>FunctionDefinitionFactory</code> to create * @return the <code>FunctionDefinitionFactory</code> for the given class name. */ public static FunctionDefinitionFactory newInstance(String className) throws FactoryException { return FactoryFinder.newInstance(className, FunctionDefinitionFactory.class, null, true); }
/** * Gets an instance of the <code>TraceEngineFactory</code> class using standard factory lookup methods defined by * the {@link com.att.research.xacml.util.FactoryFinder} class. * * @return an instance of the <code>TraceEngineFactory</code> class. * @throws FactoryException if there is an error finding a <code>TraceEngineFactory</code> */ public static TraceEngineFactory newInstance(Properties properties) throws FactoryException { return FactoryFinder.find(FACTORYID, DEFAULT_FACTORY_CLASSNAME, TraceEngineFactory.class, properties); }
/** * Creates a new <code>PEPEngineFactory</code> instance using the given class name and the default thread class loader. * * @param factoryClassName the <code>String</code> name of the factory class to instantiate * @return an instance of an object that extends <code>PEPEngineFactory</code> to use in creating <code>PEPEngine</code> objects. */ public static PEPEngineFactory newInstance(String factoryClassName) throws FactoryException { return FactoryFinder.newInstance(factoryClassName, PEPEngineFactory.class, null, true); }
/** * Gets an instance of the configured <code>PIPFinderFactory</code> class. * * @return the configured <code>PIPFinderFactory</code> * @throws FactoryException if there is an error instantiating the factory */ public static PIPFinderFactory newInstance() throws FactoryException { return FactoryFinder.find(FACTORYID, DEFAULT_FACTORY_CLASSNAME, PIPFinderFactory.class); }
/** * Gets an instance of the <code>TraceEngineFactory</code> class using the given <code>String</code> class name, and <code>ClassLoader</code>> * * @param className the <code>String</code> name of the <code>Class</code> extending <code>TraceEngineFactory</code> to load * @param classLoader the <code>ClassLoader</code> to use * @return an instance of the <code>TraceEngineFactory</code> * @throws FactoryException if there is an error loading the <code>TraceEngineFactory</code> class or creating an instance from it. */ public static TraceEngineFactory newInstance(String className, ClassLoader classLoader) throws FactoryException { return FactoryFinder.newInstance(className, TraceEngineFactory.class, classLoader, false); }
/** * Creates an instance of the <code>FunctionDefinitionFactory</code> using default configuration information. * * @return the default <code>FunctionDefinitionFactory</code> */ public static FunctionDefinitionFactory newInstance() throws FactoryException { return FactoryFinder.find(FACTORYID, DEFAULT_FACTORY_CLASSNAME, FunctionDefinitionFactory.class); }
/** * Creates an instance of the <code>CombiningAlgorithmFactory</code> using the given class name using the given <code>ClassLoader</code>. * * @param className the <code>String</code> class name of the <code>CombiningAlgorithmFactory</code> to create * @param classLoader the <code>ClassLoader</code> to use to load the class with the given class name * @return the <code>CombiningAlgorithmFactory</code> for the given class name */ public static CombiningAlgorithmFactory newInstance(String className, ClassLoader classLoader) throws FactoryException { return FactoryFinder.newInstance(className, CombiningAlgorithmFactory.class, classLoader, false); } }
/** * Creates an instance of the <code>CombiningAlgorithmFactory</code> using default configuration information. * * @return the default <code>CombiningAlgorithmFactory</code> */ public static CombiningAlgorithmFactory newInstance(Properties properties) throws FactoryException { return FactoryFinder.find(FACTORYID, DEFAULT_FACTORY_CLASSNAME, CombiningAlgorithmFactory.class, properties); }
/** * Creates an instance of the <code>FunctionDefinitionFactory</code> using the given class name using the given <code>ClassLoader</code>. * * @param className the <code>String</code> class name of the <code>FunctionDefinitionFactory</code> to create * @param classLoader the <code>ClassLoader</code> to use to load the class with the given class name * @return the <code>FunctionDefinitionFactory</code> for the given class name */ public static FunctionDefinitionFactory newInstance(String className, ClassLoader classLoader) throws FactoryException { return FactoryFinder.newInstance(className, FunctionDefinitionFactory.class, classLoader, false); } }
/** * Creates an instance of the <code>FunctionDefinitionFactory</code> using default configuration information. * * @return the default <code>FunctionDefinitionFactory</code> */ public static FunctionDefinitionFactory newInstance(Properties properties) throws FactoryException { return FactoryFinder.find(FACTORYID, DEFAULT_FACTORY_CLASSNAME, FunctionDefinitionFactory.class, properties); }
/** * Creates an instance of the <code>CombiningAlgorithmFactory</code> using the given class name using the given <code>ClassLoader</code>. * * @param className the <code>String</code> class name of the <code>CombiningAlgorithmFactory</code> to create * @param classLoader the <code>ClassLoader</code> to use to load the class with the given class name * @return the <code>CombiningAlgorithmFactory</code> for the given class name */ public static CombiningAlgorithmFactory newInstance(String className, ClassLoader classLoader) throws FactoryException { return FactoryFinder.newInstance(className, CombiningAlgorithmFactory.class, classLoader, false); } }
/** * Creates an instance of the <code>DataTypeFactory</code> using default configuration information. * * @return the default <code>DataTypeFactory</code> * @throws FactoryException */ public static DataTypeFactory newInstance() throws FactoryException { return FactoryFinder.find(FACTORYID, DEFAULT_FACTORY_CLASSNAME, DataTypeFactory.class); }
/** * Creates an instance of the <code>DataTypeFactory</code> using the given class name. * * @param className the <code>String</code> class name of the <code>DataTypeFactory</code> to create * @return the <code>DataTypeFactory</code> for the given class name. */ public static DataTypeFactory newInstance(String className) throws FactoryException { return FactoryFinder.newInstance(className, DataTypeFactory.class, null, true); }
/** * Gets an instance of the <code>TraceEngineFactory</code> class using standard factory lookup methods defined by * the {@link com.att.research.xacml.util.FactoryFinder} class. * * @return an instance of the <code>TraceEngineFactory</code> class. * @throws FactoryException if there is an error finding a <code>TraceEngineFactory</code> */ public static TraceEngineFactory newInstance() throws FactoryException { return FactoryFinder.find(FACTORYID, DEFAULT_FACTORY_CLASSNAME, TraceEngineFactory.class); }
/** * Creates an instance of the <code>DataTypeFactory</code> using the given class name using the given <code>ClassLoader</code>. * * @param className the <code>String</code> class name of the <code>DataTypeFactory</code> to create * @param classLoader the <code>ClassLoader</code> to use to load the class with the given class name * @return the <code>DataTypeFactory</code> for the given class name */ public static DataTypeFactory newInstance(String className, ClassLoader classLoader) throws FactoryException { return FactoryFinder.newInstance(className, DataTypeFactory.class, classLoader, false); } }