Lines Matching defs:factory

232      * using the factory's current set of configuration attributes.</p>
253 * instances returned by this factory. This is useful in environments
399 // Return any previously registered factory for this class loader
400 LogFactory factory = getCachedFactory(contextClassLoader);
401 if (factory != null) {
402 return factory;
462 factory = newFactory(factoryClass, baseClassLoader, contextClassLoader);
474 + " instance of the custom factory class"
488 + " instance of the custom factory class"
502 if (factory == null) {
534 factory = newFactory(factoryClassName, baseClassLoader, contextClassLoader );
551 + " instance of the custom factory class"
562 if (factory == null) {
577 factory = newFactory(factoryClass, baseClassLoader, contextClassLoader);
598 if (factory == null) {
615 factory = newFactory(FACTORY_DEFAULT, thisClassLoader, contextClassLoader);
618 if (factory != null) {
622 cacheFactory(contextClassLoader, factory);
629 factory.setAttribute(name, value);
634 return factory;
695 logDiagnostic("Releasing factory for classloader " + objectId(classLoader));
704 LogFactory factory = (LogFactory) factories.get(classLoader);
705 if (factory != null) {
706 factory.release();
726 logDiagnostic("Releasing factory for all classloaders.");
908 * @return the factory associated with the specified classloader if
914 LogFactory factory = null;
921 factory = nullClassLoaderFactory;
923 factory = (LogFactory) factories.get(contextClassLoader);
926 return factory;
930 * Remember this factory, so later calls to LogFactory.getCachedFactory
937 * @param factory should be the factory to cache. This should never be null.
939 private static void cacheFactory(ClassLoader classLoader, LogFactory factory)
941 // Ideally we would assert(factory != null) here. However reporting
944 if (factory != null) {
946 nullClassLoaderFactory = factory;
948 factories.put(classLoader, factory);
991 * @param contextClassLoader is the context that this new factory will
1017 "An error occurred while loading the factory class:"
1055 * @param classLoader used to load the specified factory class. This is
1201 "Unable to load factory class via classloader "
1277 // LogFactory cannot be loaded by the classloader which loaded the custom factory implementation.
1281 // to load the custom factory.
1284 "custom LogFactory implementation. Is the custom factory in the right classloader?");