/** * 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() throws FactoryException { return FactoryFinder.find(FACTORYID, DEFAULT_FACTORY_CLASSNAME, PAPEngineFactory.class); }
/** * 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); } }
logger.debug("Found system property, value=" + systemProp); return newInstance(systemProp, classExtends, null, true, xacmlProperties); logger.trace("Found factoryId xacml.properties, value=" + factoryClassName); return newInstance(factoryClassName, classExtends, null, true, xacmlProperties); T provider = findJarServiceProvider(factoryId, classExtends, xacmlProperties); if (provider != null) { return provider; logger.debug("Loaded from fallback value: " + fallbackClassName); return newInstance(fallbackClassName, classExtends, null, true, xacmlProperties);
public static <T> T newInstance(String className, Class<T> classExtends, ClassLoader cl, boolean doFallback, Properties xacmlProperties) throws FactoryException { try { Class<?> providerClass = getProviderClass(className, cl, doFallback); if (classExtends.isAssignableFrom(providerClass)) { Object instance = null;
logger.debug("Found system property, value=" + systemProp); return newInstance(systemProp, classExtends, null, true, xacmlProperties); logger.trace("Found factoryId xacml.properties, value=" + factoryClassName); return newInstance(factoryClassName, classExtends, null, true, xacmlProperties); T provider = findJarServiceProvider(factoryId, classExtends, xacmlProperties); if (provider != null) { return provider; logger.debug("Loaded from fallback value: " + fallbackClassName); return newInstance(fallbackClassName, classExtends, null, true, xacmlProperties);
public static <T> T newInstance(String className, Class<T> classExtends, ClassLoader cl, boolean doFallback, Properties xacmlProperties) throws FactoryException { try { Class<?> providerClass = getProviderClass(className, cl, doFallback); if (classExtends.isAssignableFrom(providerClass)) { Object instance = null;
/** * 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 a new <code>PEPEngineFactory</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>PEPEngineFactory</code> to use in creating <code>PEPEngine</code> objects. */ public static PEPEngineFactory newInstance(Properties properties) throws FactoryException { return FactoryFinder.find(FACTORYID, DEFAULT_FACTORY_CLASSNAME, PEPEngineFactory.class, properties); }
/** * 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); }
/** * 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); }
/** * 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); } }
/** * 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); }
/** * 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); }
/** * 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>PAPEngineFactory</code> instance using the given class name and <code>ClassLoader</code>. If the * <code>ClassLoader</code> is null, use the default thread class loader. * * @param factoryClassName the <code>String</code> name of the factory class to instantiate * @param classLoader the <code>ClassLoader</code> to use to load the factory class * @return an instance of an object that extends <code>PAPEngineFactory</code> to use in creating <code>PAPEngine</code> objects. */ public static PAPEngineFactory newInstance(String factoryClassName, ClassLoader classLoader) throws FactoryException { return FactoryFinder.newInstance(factoryClassName, PAPEngineFactory.class, classLoader, false); }
/** * 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); }
/** * 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); }
/** * 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>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); }
/** * 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); }