| java.lang.Object org.ow2.easybeans.naming.url.URLFactory
URLFactory | public class URLFactory implements ObjectFactory(Code) | | Allow to lookup java.net.URL object.
author: Florent BENOIT |
Field Summary | |
final protected static String | FACTORY_TYPE The Java type for which this factory knows how to create objects. |
Method Summary | |
public Object | getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable, ?> environment) Creates a java.net.URL object using the location or reference information
specified.
Parameters: obj - the possibly null object containing location or referenceinformation that can be used in creating an object. Parameters: name - the name of this object relative to nameCtx, or null if noname is specified. Parameters: nameCtx - the context relative to which the name parameter isspecified, or null if name is relative to the default initialcontext. Parameters: environment - the possibly null environment that is used in creatingthe object. |
FACTORY_TYPE | final protected static String FACTORY_TYPE(Code) | | The Java type for which this factory knows how to create objects.
|
getObjectInstance | public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable, ?> environment) throws NamingException(Code) | | Creates a java.net.URL object using the location or reference information
specified.
Parameters: obj - the possibly null object containing location or referenceinformation that can be used in creating an object. Parameters: name - the name of this object relative to nameCtx, or null if noname is specified. Parameters: nameCtx - the context relative to which the name parameter isspecified, or null if name is relative to the default initialcontext. Parameters: environment - the possibly null environment that is used in creatingthe object. a newly created java.net.URL object with the specificconfiguration; null if an object cannot be created. throws: NamingException - if this object factory encountered an exception whileattempting to create an object, and no other object factories areto be tried. |
|
|