protected void initFactories() { FactoryFinder.setFactory(FactoryFinder.APPLICATION_FACTORY, "org.seasar.teeda.core.mock.MockApplicationFactory"); FactoryFinder.setFactory(FactoryFinder.FACES_CONTEXT_FACTORY, "org.seasar.teeda.core.mock.MockFacesContextFactory"); FactoryFinder.setFactory(FactoryFinder.LIFECYCLE_FACTORY, "org.seasar.teeda.core.mock.MockLifecycleFactory"); FactoryFinder.setFactory(FactoryFinder.RENDER_KIT_FACTORY, "org.seasar.teeda.core.mock.MockRenderKitFactory"); }
private void setFactories(String factoryName, Collection<String> factories, String defaultFactory) { FactoryFinder.setFactory(factoryName, defaultFactory); for (String factory : factories) { if (!factory.equals(defaultFactory)) { FactoryFinder.setFactory(factoryName, factory); } } }
private void setFactories(String factoryName, Collection<String> factories, String defaultFactory) { FactoryFinder.setFactory(factoryName, defaultFactory); for (String factory : factories) { if (!factory.equals(defaultFactory)) { FactoryFinder.setFactory(factoryName, factory); } } }
/** * Add the InjectionApplicationFactory as the top-level ApplicationFactory * so that the default instances, provided by {@link com.sun.faces.application.ApplicationFactoryImpl} * can be injected into the actual top-level FacesContext instance (that which * is returned by the InjectionFacesContextFactory's delegate). */ private void addInjectionApplicationFactory() { FactoryFinder.setFactory(FactoryFinder.APPLICATION_FACTORY, InjectionApplicationFactory.class.getName()); }
private void setFactories(String factoryName, Collection<String> factories, String defaultFactory) { FactoryFinder.setFactory(factoryName, defaultFactory); for (String factory : factories) { if (!factory.equals(defaultFactory)) { FactoryFinder.setFactory(factoryName, factory); } } }
/** * Add the InjectionApplicationFactory as the top-level ApplicationFactory so that the default * instances, provided by {@link com.sun.faces.application.ApplicationFactoryImpl} can be * injected into the actual top-level FacesContext instance (that which is returned by the * InjectionFacesContextFactory's delegate). */ private void addInjectionApplicationFactory() { FactoryFinder.setFactory(FactoryFinder.APPLICATION_FACTORY, InjectionApplicationFactory.class.getName()); }
protected void initFactories() throws Exception { FactoryFinder.setFactory(FactoryFinder.APPLICATION_FACTORY, MockApplicationFactory.class.getName()); FactoryFinder.setFactory(FactoryFinder.FACES_CONTEXT_FACTORY, MockFacesContextFactory.class.getName()); FactoryFinder.setFactory(FactoryFinder.LIFECYCLE_FACTORY, MockLifecycleFactory.class.getName()); FactoryFinder.setFactory(FactoryFinder.RENDER_KIT_FACTORY, MockRenderKitFactory.class.getName()); }
/** * Add the InjectionFacesContextFactory as the top-level FacesContextFactory * so that the default instances, provided by {@link com.sun.faces.context.FacesContextFactoryImpl} * can be injected into the actual top-level FacesContext instance (that which * is returned by the InjectionFacesContextFactory's delegate). */ private void addInjectionFacesContextFactory() { FactoryFinder.setFactory(FactoryFinder.FACES_CONTEXT_FACTORY, InjectionFacesContextFactory.class.getName()); }
/** * Add the InjectionFacesContextFactory as the top-level FacesContextFactory so that the default * instances, provided by {@link com.sun.faces.context.FacesContextFactoryImpl} can be injected * into the actual top-level FacesContext instance (that which is returned by the * InjectionFacesContextFactory's delegate). */ private void addInjectionFacesContextFactory() { FactoryFinder.setFactory(FactoryFinder.FACES_CONTEXT_FACTORY, InjectionFacesContextFactory.class.getName()); }
/** * Add the InjectionFacesContextFactory as the top-level FacesContextFactory so that the default * instances, provided by {@link com.sun.faces.context.FacesContextFactoryImpl} can be injected * into the actual top-level FacesContext instance (that which is returned by the * InjectionFacesContextFactory's delegate). */ private void addInjectionFacesContextFactory() { FactoryFinder.setFactory(FactoryFinder.FACES_CONTEXT_FACTORY, InjectionFacesContextFactory.class.getName()); }
/** * Add the InjectionFacesContextFactory as the top-level FacesContextFactory so that the default * instances, provided by {@link com.sun.faces.context.FacesContextFactoryImpl} can be injected * into the actual top-level FacesContext instance (that which is returned by the * InjectionFacesContextFactory's delegate). */ private void addInjectionFacesContextFactory() { FactoryFinder.setFactory(FactoryFinder.FACES_CONTEXT_FACTORY, InjectionFacesContextFactory.class.getName()); }
/** * Add the InjectionApplicationFactory as the top-level ApplicationFactory so that the default * instances, provided by {@link com.sun.faces.application.ApplicationFactoryImpl} can be * injected into the actual top-level FacesContext instance (that which is returned by the * InjectionFacesContextFactory's delegate). */ private void addInjectionApplicationFactory() { FactoryFinder.setFactory(FactoryFinder.APPLICATION_FACTORY, InjectionApplicationFactory.class.getName()); }
private void setFactories(String factoryName, Iterator factories, String defaultFactory) { FactoryFinder.setFactory(factoryName, defaultFactory); while (factories.hasNext()) { String factory = (String) factories.next(); if (!factory.equals(defaultFactory)) FactoryFinder.setFactory(factoryName, factory); } }
private static void setFactory(String factoryName, String factoryImpl) { if (factoryName != null && factoryImpl != null) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, MessageFormat.format( "Calling FactoryFinder.setFactory({0}, {1})", factoryName, factoryImpl)); } FactoryFinder.setFactory(factoryName, factoryImpl); } }
private static void setFactory(String factoryName, String factoryImpl) { if (factoryName != null && factoryImpl != null) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, MessageFormat.format("Calling FactoryFinder.setFactory({0}, {1})", factoryName, factoryImpl)); } FactoryFinder.setFactory(factoryName, factoryImpl); } }
private static void setFactory(String factoryName, String factoryImpl) { if (factoryName != null && factoryImpl != null) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, MessageFormat.format( "Calling FactoryFinder.setFactory({0}, {1})", factoryName, factoryImpl)); } FactoryFinder.setFactory(factoryName, factoryImpl); } }
private static void setFactory(String factoryName, String factoryImpl) { if (factoryName != null && factoryImpl != null) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, MessageFormat.format("Calling FactoryFinder.setFactory({0}, {1})", factoryName, factoryImpl)); } FactoryFinder.setFactory(factoryName, factoryImpl); } }
public StubLifecycle() { StubLifecycleFactory.setLifecycle(this); FactoryFinder.setFactory(FactoryFinder.LIFECYCLE_FACTORY, StubLifecycleFactory.class.getName()); }
public MockLifecycle() { MockLifecycleFactory.setLifecycle(this); FactoryFinder.setFactory(FactoryFinder.LIFECYCLE_FACTORY, MockLifecycleFactory.class.getName()); }
public void assemble() { String factoryImplName = null; for (Iterator itr = factories_.iterator(); itr.hasNext();) { factoryImplName = (String) itr.next(); FactoryFinder.setFactory(getFactoryClassName(), factoryImplName); } }