com.objectwave.naming
Class ContextFactory
java.lang.Object
|
+--com.objectwave.naming.ContextFactory
- public class ContextFactory
- extends java.lang.Object
- Version:
- $Id: ContextFactory.java,v 1.3 2001/12/21 20:27:54 dave_hoag Exp $
- Author:
- cson
Method Summary |
java.lang.Object |
create(java.lang.String refName,
java.lang.Class homeClass)
|
java.lang.Object |
create(java.lang.String refName,
java.lang.String homeClassName)
|
javax.naming.Context |
getInitialContext()
Gets the InitialContext attribute of the ContextFactory object |
static ContextFactory |
getInstance()
Gets the Instance attribute of the ContextFactory class |
java.lang.Object |
lookup(java.lang.String refName)
|
java.lang.Object |
narrow(java.lang.String refName,
java.lang.Class refClass)
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the Property attribute of the ContextFactory object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FACTORY_INITIAL
public static final java.lang.String FACTORY_INITIAL
- See Also:
- Constant Field Values
PROVIDER_URL
public static final java.lang.String PROVIDER_URL
- See Also:
- Constant Field Values
FACTORY_URL_PKG
public static final java.lang.String FACTORY_URL_PKG
- See Also:
- Constant Field Values
getInstance
public static ContextFactory getInstance()
- Gets the Instance attribute of the ContextFactory class
- Returns:
- The Instance value
setProperty
public void setProperty(java.lang.String name,
java.lang.String value)
- Sets the Property attribute of the ContextFactory object
- Parameters:
name
- The new Property valuevalue
- The new Property value
getInitialContext
public javax.naming.Context getInitialContext()
throws javax.naming.NamingException
- Gets the InitialContext attribute of the ContextFactory object
- Returns:
- The InitialContext value
- Throws:
javax.naming.NamingException
lookup
public java.lang.Object lookup(java.lang.String refName)
throws javax.naming.NamingException
- Parameters:
refName
- Name of the reference in JNDI
- Returns:
- The referenced object
- Throws:
javax.naming.NamingException
narrow
public java.lang.Object narrow(java.lang.String refName,
java.lang.Class refClass)
throws javax.naming.NamingException
- Parameters:
refName
- Name of the reference in JNDIrefClass
- Class of the referenced object.
- Returns:
- The referenced object
- Throws:
javax.naming.NamingException
create
public java.lang.Object create(java.lang.String refName,
java.lang.Class homeClass)
throws javax.naming.NamingException
- Parameters:
refName
- Name of the reference in JNDIhomeClass
- Class of the referenced object.
- Returns:
- The referenced object
- Throws:
javax.naming.NamingException
create
public java.lang.Object create(java.lang.String refName,
java.lang.String homeClassName)
throws javax.naming.NamingException
- Parameters:
refName
- Name of the reference in JNDIhomeClassName
-
- Returns:
- The referenced object
- Throws:
javax.naming.NamingException