Uses of Class
org.glassfish.api.naming.SimpleJndiName
Packages that use SimpleJndiName
-
Uses of SimpleJndiName in org.glassfish.api.naming
Methods in org.glassfish.api.naming that return SimpleJndiNameModifier and TypeMethodDescriptionSimpleJndiName.changePrefix(String newPrefix) Changes the simple JNDI name prefix.ComponentNamingUtil.composeInternalGlobalJavaAppName(String appName, SimpleJndiName origJavaAppName) Utility for discovering the internal global name under which an application-wide resource is made available (e.g.JNDIBinding.getName()Returns the logical name in the component namespacestatic SimpleJndiNamestatic SimpleJndiNameSimpleJndiName.removePrefix()Returns the JNDI name without the prefix.SimpleJndiName.removePrefix(String prefix) SimpleJndiName.removeSuffix(String suffix) Methods in org.glassfish.api.naming with parameters of type SimpleJndiNameModifier and TypeMethodDescriptionintSimpleJndiName.compareTo(SimpleJndiName other) ComponentNamingUtil.composeInternalGlobalJavaAppName(String appName, SimpleJndiName origJavaAppName) Utility for discovering the internal global name under which an application-wide resource is made available (e.g.<T> TGlassfishNamingManager.lookup(String componentId, SimpleJndiName name) Lookup a naming entry for a particular componentId<T> TGlassfishNamingManager.lookup(SimpleJndiName name) Lookup a naming entry<T> TGlassfishNamingManager.lookupFromAppNamespace(String appName, SimpleJndiName name, Hashtable<?, ?> env) Lookup a naming entry in a particular application's namespace<T> TGlassfishNamingManager.lookupFromModuleNamespace(String appName, String moduleName, SimpleJndiName name, Hashtable<?, ?> env) Lookup a naming entry in a particular application's module's namespacevoidGlassfishNamingManager.publishCosNamingObject(SimpleJndiName name, Object obj, boolean rebind) Publish aRemoteorObjectobject.voidGlassfishNamingManager.publishObject(SimpleJndiName name, Object obj, boolean rebind) Publish an object in the naming service.GlassfishNamingManager.restoreJavaCompEnvContext(SimpleJndiName contextName) Recreate a context for java:comp/env or one of its sub-contexts given the context name.voidGlassfishNamingManager.unbindAppObject(String appName, SimpleJndiName name) Remove an object from the application's namespace.voidGlassfishNamingManager.unbindModuleObject(String appName, String moduleName, SimpleJndiName 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 contextvoidGlassfishNamingManager.unpublishCosNamingObject(SimpleJndiName name) Remove aRemoteorObjectinstance from the naming service and global naming service.voidGlassfishNamingManager.unpublishObject(SimpleJndiName name) Remove an object from the naming service.