Class ResourceNamingService
- java.lang.Object
-
- org.glassfish.resourcebase.resources.naming.ResourceNamingService
-
@Service public class ResourceNamingService extends Object
Resource naming service which helps to bind resources and internal resource objects to appropriate namespace in JNDI. Supports "java:app", "java:module" and normal(physical) names.- Author:
- Jagadish Ramu
-
-
Field Summary
Fields Modifier and Type Field Description static StringJAVA_APP_SCOPE_PREFIXstatic StringJAVA_COMP_SCOPE_PREFIXstatic StringJAVA_GLOBAL_SCOPE_PREFIXstatic StringJAVA_MODULE_SCOPE_PREFIXstatic StringLOGGERstatic StringLOGMESSAGE_RESOURCE
-
Constructor Summary
Constructors Constructor Description ResourceNamingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectlookup(GenericResourceInfo resourceInfo, String name)Objectlookup(GenericResourceInfo resourceInfo, String name, Hashtable env)voidpublishObject(GenericResourceInfo resourceInfo, String jndiName, Object object, boolean rebind)voidpublishObject(ResourceInfo resourceInfo, Object object, boolean rebind)voidunpublishObject(GenericResourceInfo resourceInfo, String jndiName)
-
-
-
Field Detail
-
LOGMESSAGE_RESOURCE
public static final String LOGMESSAGE_RESOURCE
- See Also:
- Constant Field Values
-
LOGGER
public static final String LOGGER
- See Also:
- Constant Field Values
-
JAVA_APP_SCOPE_PREFIX
public static final String JAVA_APP_SCOPE_PREFIX
- See Also:
- Constant Field Values
-
JAVA_COMP_SCOPE_PREFIX
public static final String JAVA_COMP_SCOPE_PREFIX
- See Also:
- Constant Field Values
-
JAVA_MODULE_SCOPE_PREFIX
public static final String JAVA_MODULE_SCOPE_PREFIX
- See Also:
- Constant Field Values
-
JAVA_GLOBAL_SCOPE_PREFIX
public static final String JAVA_GLOBAL_SCOPE_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
publishObject
public void publishObject(GenericResourceInfo resourceInfo, String jndiName, Object object, boolean rebind) throws NamingException
- Throws:
NamingException
-
publishObject
public void publishObject(ResourceInfo resourceInfo, Object object, boolean rebind) throws NamingException
- Throws:
NamingException
-
unpublishObject
public void unpublishObject(GenericResourceInfo resourceInfo, String jndiName) throws NamingException
- Throws:
NamingException
-
lookup
public Object lookup(GenericResourceInfo resourceInfo, String name, Hashtable env) throws NamingException
- Throws:
NamingException
-
lookup
public Object lookup(GenericResourceInfo resourceInfo, String name) throws NamingException
- Throws:
NamingException
-
-