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
-
Constructor Details
-
ProjectStageJndiFactory
public ProjectStageJndiFactory()
-
-
Method Details
-
getObjectInstance
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment) throws ExceptionLookup the configured stage by looking for the parameterstage
. If the value of
stage
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)
-