FactoryFinderInstance getApplicationFactoryManager(boolean create) { ClassLoader cl = getClassLoader(); FactoryFinderInstance result = getApplicationFactoryManager(cl, create); return result; }
FactoryFinderInstance getApplicationFactoryManager() { ClassLoader cl = getClassLoader(); FactoryFinderInstance result = getApplicationFactoryManager(cl, true); return result; }
FactoryFinderInstance getApplicationFactoryManager() { ClassLoader cl = getClassLoader(); FactoryFinderInstance result = getApplicationFactoryManager(cl, true); return result; }
FactoryFinderInstance getApplicationFactoryManager(boolean create) { ClassLoader cl = getClassLoader(); FactoryFinderInstance result = getApplicationFactoryManager(cl, create); return result; }
FactoryFinderInstance getApplicationFactoryManager() { ClassLoader cl = getClassLoader(); FactoryFinderInstance result = getApplicationFactoryManager(cl, true); return result; }
FactoryFinderInstance getApplicationFactoryManager(boolean create) { ClassLoader cl = getClassLoader(); FactoryFinderInstance result = getApplicationFactoryManager(cl, create); return result; }
FactoryFinderInstance getApplicationFactoryManager() { ClassLoader cl = getClassLoader(); FactoryFinderInstance result = getApplicationFactoryManager(cl, true); return result; }
FactoryFinderInstance getApplicationFactoryManager(boolean create) { ClassLoader cl = getClassLoader(); FactoryFinderInstance result = getApplicationFactoryManager(cl, create); return result; }
/** * <p>This method will store the argument * <code>factoryName/implName</code> mapping in such a way that * {@link #getFactory} will find this mapping when searching for a * match.</p> * <p/> * <p>This method has no effect if <code>getFactory()</code> has * already been called looking for a factory for this * <code>factoryName</code>.</p> * <p/> * <p>This method can be used by implementations to store a factory * mapping while parsing the Faces configuration file</p> * * @throws IllegalArgumentException if <code>factoryName</code> does not * identify a standard JavaServer Faces factory name * @throws NullPointerException if <code>factoryname</code> * is null */ public static void setFactory(String factoryName, String implName) { FactoryFinderInstance manager = FACTORIES_CACHE.getApplicationFactoryManager(); manager.addFactory(factoryName, implName); }
/** * <p>This method will store the argument * <code>factoryName/implName</code> mapping in such a way that * {@link #getFactory} will find this mapping when searching for a * match.</p> * * <p>This method has no effect if <code>getFactory()</code> has * already been called looking for a factory for this * <code>factoryName</code>.</p> * * <p>This method can be used by implementations to store a factory * mapping while parsing the Faces configuration file</p> * * @throws IllegalArgumentException if <code>factoryName</code> does not * identify a standard JavaServer Faces factory name * @throws NullPointerException if <code>factoryname</code> * is null * * @param factoryName the name to be used in a subsequent call to {@link #getFactory}. * * @param implName the fully qualified class name of the factory corresponding * to {@code factoryName}. */ public static void setFactory(String factoryName, String implName) { FactoryFinderInstance manager = FACTORIES_CACHE.getApplicationFactoryManager(); manager.addFactory(factoryName, implName); }
/** * <p>This method will store the argument * <code>factoryName/implName</code> mapping in such a way that * {@link #getFactory} will find this mapping when searching for a * match.</p> * * <p>This method has no effect if <code>getFactory()</code> has * already been called looking for a factory for this * <code>factoryName</code>.</p> * * <p>This method can be used by implementations to store a factory * mapping while parsing the Faces configuration file</p> * * @throws IllegalArgumentException if <code>factoryName</code> does not * identify a standard JavaServer Faces factory name * @throws NullPointerException if <code>factoryname</code> * is null * * @param factoryName the name to be used in a subsequent call to {@link #getFactory}. * * @param implName the fully qualified class name of the factory corresponding * to {@code factoryName}. */ public static void setFactory(String factoryName, String implName) { FactoryFinderInstance manager = FACTORIES_CACHE.getApplicationFactoryManager(); manager.addFactory(factoryName, implName); }
/** * <p>This method will store the argument * <code>factoryName/implName</code> mapping in such a way that * {@link #getFactory} will find this mapping when searching for a * match.</p> * * <p>This method has no effect if <code>getFactory()</code> has * already been called looking for a factory for this * <code>factoryName</code>.</p> * * <p>This method can be used by implementations to store a factory * mapping while parsing the Faces configuration file</p> * * @throws IllegalArgumentException if <code>factoryName</code> does not * identify a standard JavaServer Faces factory name * @throws NullPointerException if <code>factoryname</code> * is null * * @param factoryName the name to be used in a subsequent call to {@link #getFactory}. * * @param implName the fully qualified class name of the factory corresponding * to {@code factoryName}. */ public static void setFactory(String factoryName, String implName) { FactoryFinderInstance manager = FACTORIES_CACHE.getApplicationFactoryManager(); manager.addFactory(factoryName, implName); }
/** * <p><span class="changed_modified_2_0">Release</span> any * references to factory instances associated with the class loader * for the calling web application. <span * class="changed_modified_2_0">This method must be called during of * web application shutdown.</span></p> * * @throws FacesException if the web application class loader * cannot be identified */ public static void releaseFactories() throws FacesException { synchronized(FACTORIES_CACHE) { if (!FACTORIES_CACHE.applicationMap.isEmpty()) { FactoryFinderInstance fm = FACTORIES_CACHE.getApplicationFactoryManager(); fm.releaseFactories(); } FACTORIES_CACHE.removeApplicationFactoryManager(); } }
/** * <p><span class="changed_modified_2_0">Release</span> any * references to factory instances associated with the class loader * for the calling web application. <span * class="changed_modified_2_0">This method must be called during of * web application shutdown.</span></p> * * @throws FacesException if the web application class loader * cannot be identified */ public static void releaseFactories() throws FacesException { synchronized(FACTORIES_CACHE) { if (!FACTORIES_CACHE.applicationMap.isEmpty()) { FactoryFinderInstance fm = FACTORIES_CACHE.getApplicationFactoryManager(); fm.releaseFactories(); } FACTORIES_CACHE.removeApplicationFactoryManager(); } }
/** * <p><span class="changed_modified_2_0">Release</span> any * references to factory instances associated with the class loader * for the calling web application. <span * class="changed_modified_2_0">This method must be called during of * web application shutdown.</span></p> * * @throws FacesException if the web application class loader * cannot be identified */ public static void releaseFactories() throws FacesException { synchronized(FACTORIES_CACHE) { if (!FACTORIES_CACHE.applicationMap.isEmpty()) { FactoryFinderInstance fm = FACTORIES_CACHE.getApplicationFactoryManager(); fm.releaseFactories(); } FACTORIES_CACHE.removeApplicationFactoryManager(); } }
/** * <p><span class="changed_modified_2_0">Release</span> any * references to factory instances associated with the class loader * for the calling web application. <span * class="changed_modified_2_0">This method must be called during of * web application shutdown.</span></p> * * @throws FacesException if the web application class loader * cannot be identified */ public static void releaseFactories() throws FacesException { synchronized(FACTORIES_CACHE) { if (!FACTORIES_CACHE.applicationMap.isEmpty()) { FactoryFinderInstance fm = FACTORIES_CACHE.getApplicationFactoryManager(); fm.releaseFactories(); } FACTORIES_CACHE.removeApplicationFactoryManager(); } }
void removeApplicationFactoryManager() { ClassLoader cl = getClassLoader(); FactoryFinderInstance fm = this.getApplicationFactoryManager(cl, false); if (null != fm) { fm.clearInjectionProvider(); } FacesContext facesContext = servletContextFacesContextFactory.getFacesContextWithoutServletContextLookup(); boolean isSpecialInitializationCase = detectSpecialInitializationCase(facesContext); FactoryManagerCacheKey key = new FactoryManagerCacheKey(facesContext, cl, applicationMap); applicationMap.remove(key); if (isSpecialInitializationCase) { logNullFacesContext.set(false); logNonNullFacesContext.set(false); } }
void removeApplicationFactoryManager() { ClassLoader cl = getClassLoader(); FactoryFinderInstance fm = this.getApplicationFactoryManager(cl, false); if (null != fm) { fm.clearInjectionProvider(); } FacesContext facesContext = servletContextFacesContextFactory.getFacesContextWithoutServletContextLookup(); boolean isSpecialInitializationCase = detectSpecialInitializationCase(facesContext); FactoryManagerCacheKey key = new FactoryManagerCacheKey(facesContext, cl, applicationMap); applicationMap.remove(key); if (isSpecialInitializationCase) { logNullFacesContext.set(false); logNonNullFacesContext.set(false); } }
void removeApplicationFactoryManager() { ClassLoader cl = getClassLoader(); FactoryFinderInstance fm = this.getApplicationFactoryManager(cl, false); if (null != fm) { fm.clearInjectionProvider(); } FacesContext facesContext = servletContextFacesContextFactory.getFacesContextWithoutServletContextLookup(); boolean isSpecialInitializationCase = detectSpecialInitializationCase(facesContext); FactoryManagerCacheKey key = new FactoryManagerCacheKey(facesContext, cl, applicationMap); applicationMap.remove(key); if (isSpecialInitializationCase) { logNullFacesContext.set(false); logNonNullFacesContext.set(false); } }
void removeApplicationFactoryManager() { ClassLoader cl = getClassLoader(); FactoryFinderInstance fm = this.getApplicationFactoryManager(cl, false); if (null != fm) { fm.clearInjectionProvider(); } FacesContext facesContext = servletContextFacesContextFactory.getFacesContextWithoutServletContextLookup(); boolean isSpecialInitializationCase = detectSpecialInitializationCase(facesContext); FactoryManagerCacheKey key = new FactoryManagerCacheKey(facesContext, cl, applicationMap); applicationMap.remove(key); if (isSpecialInitializationCase) { logNullFacesContext.set(false); logNonNullFacesContext.set(false); } }