org.objectweb.jonas_lib.naming.factory
Class ServletEndpointsFactory
java.lang.Object
org.objectweb.jonas_lib.naming.factory.ServletEndpointsFactory
- All Implemented Interfaces:
- javax.naming.spi.ObjectFactory
- public class ServletEndpointsFactory
- extends java.lang.Object
- implements javax.naming.spi.ObjectFactory
Factory for ServletEndpoints instance
- Author:
- Guillaume Sauthier
Field Summary |
protected static java.lang.String |
FACTORY_TYPE
The Java type for which this factory knows how to create objects. |
Method Summary |
java.lang.Object |
getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable environment)
Creates an org.objectweb.jonas.ws.ServletEndpoints object using the location or reference
information specified. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FACTORY_TYPE
protected static final java.lang.String FACTORY_TYPE
- The Java type for which this factory knows how to create objects.
- See Also:
- Constant Field Values
ServletEndpointsFactory
public ServletEndpointsFactory()
getObjectInstance
public java.lang.Object getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable environment)
throws java.lang.Exception
- Creates an org.objectweb.jonas.ws.ServletEndpoints object using the location or reference
information specified.
- Specified by:
getObjectInstance
in interface javax.naming.spi.ObjectFactory
- Parameters:
obj
- the possibly null object containing location or reference
information that can be used in creating an object.name
- the name of this object relative to nameCtx, or null if no
name is specified.nameCtx
- the context relative to which the name parameter is
specified, or null if name is relative to the default initial context.environment
- the possibly null environment that is used in
creating the object.
- Returns:
- a newly created org.objectweb.jonas.ws.ServletEndpoints object with the specific
configuration; null if an object cannot be created.
- Throws:
java.lang.Exception
- if this object factory encountered an exception
while attempting to create an object, and no other object factories
are to be tried.