Package com.sun.faces.application
Class ProjectStageJndiFactory
- java.lang.Object
-
- com.sun.faces.application.ProjectStageJndiFactory
-
- All Implemented Interfaces:
ObjectFactory
public class ProjectStageJndiFactory extends Object implements ObjectFactory
Allows configuring ProjectStage at a server (or in GlassFish's case domain) level. This allows for the concept of development and test servers where each application doesn't need to be individually configured, but will instead rely on global JNDI configuration instead.
-
-
Constructor Summary
Constructors Constructor Description ProjectStageJndiFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment)
Lookup the configured stage by looking for the parameterstage
.
-
-
-
Method Detail
-
getObjectInstance
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment) throws Exception
Lookup the configured stage by looking for the parameterstage
. If the value ofstage
cannot be determined, the defaultProjectStage.Production
is returned.- Specified by:
getObjectInstance
in interfaceObjectFactory
- Throws:
Exception
- See Also:
ObjectFactory.getObjectInstance(Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)
-
-