|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Contract public interface GlassfishNamingManager
The NamingManager provides an interface for various components to use naming functionality. It provides methods for binding and unbinding environment properties, resource and ejb references.
| Field Summary | |
|---|---|
static java.lang.String |
LOGICAL_NAME
|
| Method Summary | |
|---|---|
void |
bindToAppNamespace(java.lang.String appName,
java.util.Collection<? extends JNDIBinding> bindings)
Binds the bindings to module namespace of an application Typically, to get access to application's namespace, invocation context must be set to appropriate application's context. This API is useful in cases where containers within GlassFish need to bind the objects in application's name-space and do not have application's invocation context |
void |
bindToComponentNamespace(java.lang.String appName,
java.lang.String moduleName,
java.lang.String componentId,
boolean treatComponentAsModule,
java.util.Collection<? extends JNDIBinding> bindings)
This method enumerates the env properties, ejb and resource references etc for a J2EE component and binds them in the applicable java: namespace. |
void |
bindToModuleNamespace(java.lang.String appName,
java.lang.String moduleName,
java.util.Collection<? extends JNDIBinding> bindings)
Binds the bindings to module namespace of an application Typically, to get access to application's module namespace, invocation context must be set to appropriate application's context. This API is useful in cases where containers within GlassFish need to bind the objects in application's module name-space and do not have application's invocation context |
javax.naming.Context |
getInitialContext()
Get the initial context. |
java.rmi.Remote |
initializeRemoteNamingSupport(org.omg.CORBA.ORB orb)
Initialize RMI-IIOP naming services |
java.lang.Object |
lookup(java.lang.String componentId,
java.lang.String name)
Lookup a naming entry for a particular componentId |
java.lang.Object |
lookupFromAppNamespace(java.lang.String appName,
java.lang.String name,
java.util.Hashtable env)
Lookup a naming entry in a particular application's namespace |
java.lang.Object |
lookupFromModuleNamespace(java.lang.String appName,
java.lang.String moduleName,
java.lang.String name,
java.util.Hashtable env)
Lookup a naming entry in a particular application's module's namespace |
void |
publishCosNamingObject(java.lang.String name,
java.lang.Object obj,
boolean rebind)
Publish a CosNaming object. |
void |
publishObject(javax.naming.Name name,
java.lang.Object obj,
boolean rebind)
Publish an object in the naming service. |
void |
publishObject(java.lang.String name,
java.lang.Object obj,
boolean rebind)
Publish an object in the naming service. |
javax.naming.Context |
restoreJavaCompEnvContext(java.lang.String contextName)
Recreate a context for java:comp/env or one of its sub-contexts given the context name. |
void |
unbindAppObject(java.lang.String appName,
java.lang.String name)
Remove an object from the application's namespace. Typically, to get access to application's namespace, invocation context must be set to appropriate application's context. This API is useful in cases where containers within GlassFish need to unbind the objects in application's name-space and do not have application's invocation context |
void |
unbindAppObjects(java.lang.String appName)
Unbind app and module level bindings for the given app name. |
void |
unbindComponentObjects(java.lang.String componentId)
Unbind component-level bindings |
void |
unbindModuleObject(java.lang.String appName,
java.lang.String moduleName,
java.lang.String name)
Remove an object from the module name-space of an application Typically, to get access to application's module namespace, invocation context must be set to appropriate application's context. This API is useful in cases where containers within GlassFish need to unbind the objects in application's module name-space and do not have application's invocation context |
void |
unpublishCosNamingObject(java.lang.String name)
Remove an object from the CosNaming service and global naming service. |
void |
unpublishObject(javax.naming.Name name)
Remove an object from the naming service. |
void |
unpublishObject(java.lang.String name)
Remove an object from the naming service. |
| Field Detail |
|---|
static final java.lang.String LOGICAL_NAME
| Method Detail |
|---|
javax.naming.Context getInitialContext()
java.lang.Object lookup(java.lang.String componentId,
java.lang.String name)
throws javax.naming.NamingException
javax.naming.NamingException
java.lang.Object lookupFromAppNamespace(java.lang.String appName,
java.lang.String name,
java.util.Hashtable env)
throws javax.naming.NamingException
appName - application-namename - name of the objectenv - Environment
javax.naming.NamingException - when unable to find the object
java.lang.Object lookupFromModuleNamespace(java.lang.String appName,
java.lang.String moduleName,
java.lang.String name,
java.util.Hashtable env)
throws javax.naming.NamingException
appName - application-namemoduleName - module-namename - name of the objectenv - Environment
javax.naming.NamingException - when unable to find the object
void publishObject(java.lang.String name,
java.lang.Object obj,
boolean rebind)
throws javax.naming.NamingException
name - Object that needs to be bound.obj - Name that the object is bound as.rebind - operation is a bind or a rebind.
java.lang.Exception
javax.naming.NamingException
void publishObject(javax.naming.Name name,
java.lang.Object obj,
boolean rebind)
throws javax.naming.NamingException
name - Object that needs to be bound.obj - Name that the object is bound as.rebind - operation is a bind or a rebind.
java.lang.Exception
javax.naming.NamingException
void publishCosNamingObject(java.lang.String name,
java.lang.Object obj,
boolean rebind)
throws javax.naming.NamingException
name - Object that needs to be bound.obj - Name that the object is bound as.rebind - operation is a bind or a rebind.
java.lang.Exception
javax.naming.NamingException
void bindToComponentNamespace(java.lang.String appName,
java.lang.String moduleName,
java.lang.String componentId,
boolean treatComponentAsModule,
java.util.Collection<? extends JNDIBinding> bindings)
throws javax.naming.NamingException
treatComponentAsModule - true if java:comp and java:module refer to the same
namespace
javax.naming.NamingException
void bindToAppNamespace(java.lang.String appName,
java.util.Collection<? extends JNDIBinding> bindings)
throws javax.naming.NamingException
appName - application-namebindings - list of bindings
javax.naming.NamingException - when unable to bind the bindings
void bindToModuleNamespace(java.lang.String appName,
java.lang.String moduleName,
java.util.Collection<? extends JNDIBinding> bindings)
throws javax.naming.NamingException
appName - application-namemoduleName - module-namebindings - list of bindings
javax.naming.NamingException - when unable to bind the bindings
void unpublishObject(java.lang.String name)
throws javax.naming.NamingException
name - Name that the object is bound as.
java.lang.Exception
javax.naming.NamingException
void unpublishCosNamingObject(java.lang.String name)
throws javax.naming.NamingException
name - Name that the object is bound as.
java.lang.Exception
javax.naming.NamingException
void unbindAppObject(java.lang.String appName,
java.lang.String name)
throws javax.naming.NamingException
name - Name that the object is bound as.appName - application-name
javax.naming.NamingException - when unable to unbind the object
void unbindModuleObject(java.lang.String appName,
java.lang.String moduleName,
java.lang.String name)
throws javax.naming.NamingException
name - Name that the object is bound as.appName - application-namemoduleName - module-name
javax.naming.NamingException - when unable to unbind the object
void unpublishObject(javax.naming.Name name)
throws javax.naming.NamingException
name - Name that the object is bound as.
java.lang.Exception
javax.naming.NamingException
void unbindComponentObjects(java.lang.String componentId)
throws javax.naming.NamingException
javax.naming.NamingException
void unbindAppObjects(java.lang.String appName)
throws javax.naming.NamingException
javax.naming.NamingException
javax.naming.Context restoreJavaCompEnvContext(java.lang.String contextName)
throws javax.naming.NamingException
javax.naming.NamingException
java.rmi.Remote initializeRemoteNamingSupport(org.omg.CORBA.ORB orb)
throws javax.naming.NamingException
orb -
javax.naming.NamingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||