Package org.jboss.as.naming.deployment
Class ContextNames
- java.lang.Object
-
- org.jboss.as.naming.deployment.ContextNames
-
public class ContextNames extends Object
- Author:
- John Bailey, Eduardo Martins
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContextNames.BindInfo
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.msc.service.ServiceNameAPPLICATION_CONTEXT_SERVICE_NAMEParent ServiceName for java:app namespacestatic org.jboss.msc.service.ServiceNameCOMPONENT_CONTEXT_SERVICE_NAMEParent ServiceName for java:comp namespacestatic org.jboss.msc.service.ServiceNameEXPORTED_CONTEXT_SERVICE_NAMEServiceName for java:jboss/exported namespacestatic org.jboss.msc.service.ServiceNameGLOBAL_CONTEXT_SERVICE_NAMEServiceName for java:global namespacestatic org.jboss.msc.service.ServiceNameJAVA_CONTEXT_SERVICE_NAMEServiceName for java: namespacestatic org.jboss.msc.service.ServiceNameJBOSS_CONTEXT_SERVICE_NAMEServiceName for java:jboss namespacestatic org.jboss.msc.service.ServiceNameMODULE_CONTEXT_SERVICE_NAMEParent ServiceName for java:module namespacestatic org.jboss.msc.service.ServiceNameNAMINGParent ServiceName for all naming services.
-
Constructor Summary
Constructors Constructor Description ContextNames()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContextNames.BindInfobindInfoFor(String jndiName)Get the service name of a NamingStorestatic ContextNames.BindInfobindInfoFor(String app, String module, String comp, String context)Get the service name of a context, ornullif there is no service mapping for the context name.static ContextNames.BindInfobindInfoForEnvEntry(String app, String module, String comp, boolean useCompNamespace, String envEntryName)Get the service name of an environment entrystatic org.jboss.msc.service.ServiceNamebuildServiceName(org.jboss.msc.service.ServiceName parentName, String relativeName)static org.jboss.msc.service.ServiceNamecontextServiceNameOfApplication(String app)Get the base service name of an application's JNDI namespace.static org.jboss.msc.service.ServiceNamecontextServiceNameOfComponent(String app, String module, String comp)Get the base service name of a component's JNDI namespace.static org.jboss.msc.service.ServiceNamecontextServiceNameOfModule(String app, String module)Get the base service name of a module's JNDI namespace.
-
-
-
Field Detail
-
NAMING
public static final org.jboss.msc.service.ServiceName NAMING
Parent ServiceName for all naming services.
-
JAVA_CONTEXT_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName JAVA_CONTEXT_SERVICE_NAME
ServiceName for java: namespace
-
COMPONENT_CONTEXT_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName COMPONENT_CONTEXT_SERVICE_NAME
Parent ServiceName for java:comp namespace
-
JBOSS_CONTEXT_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName JBOSS_CONTEXT_SERVICE_NAME
ServiceName for java:jboss namespace
-
GLOBAL_CONTEXT_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName GLOBAL_CONTEXT_SERVICE_NAME
ServiceName for java:global namespace
-
APPLICATION_CONTEXT_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName APPLICATION_CONTEXT_SERVICE_NAME
Parent ServiceName for java:app namespace
-
MODULE_CONTEXT_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName MODULE_CONTEXT_SERVICE_NAME
Parent ServiceName for java:module namespace
-
EXPORTED_CONTEXT_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName EXPORTED_CONTEXT_SERVICE_NAME
ServiceName for java:jboss/exported namespace
-
-
Method Detail
-
contextServiceNameOfComponent
public static org.jboss.msc.service.ServiceName contextServiceNameOfComponent(String app, String module, String comp)
Get the base service name of a component's JNDI namespace.- Parameters:
app- the application name (must not benull)module- the module name (must not benull)comp- the component name (must not benull)- Returns:
- the base service name
-
contextServiceNameOfModule
public static org.jboss.msc.service.ServiceName contextServiceNameOfModule(String app, String module)
Get the base service name of a module's JNDI namespace.- Parameters:
app- the application name (must not benull)module- the module name (must not benull)- Returns:
- the base service name
-
contextServiceNameOfApplication
public static org.jboss.msc.service.ServiceName contextServiceNameOfApplication(String app)
Get the base service name of an application's JNDI namespace.- Parameters:
app- the application name (must not benull)- Returns:
- the base service name
-
bindInfoFor
public static ContextNames.BindInfo bindInfoFor(String app, String module, String comp, String context)
Get the service name of a context, ornullif there is no service mapping for the context name.- Parameters:
app- the application namemodule- the module namecomp- the component namecontext- the context to check- Returns:
- the BindInfo
-
bindInfoForEnvEntry
public static ContextNames.BindInfo bindInfoForEnvEntry(String app, String module, String comp, boolean useCompNamespace, String envEntryName)
Get the service name of an environment entry- Parameters:
app- the application namemodule- the module namecomp- the component nameuseCompNamespace- If the component has its own comp namespaceenvEntryName- The env entry name- Returns:
- the service name or
nullif there is no service
-
buildServiceName
public static org.jboss.msc.service.ServiceName buildServiceName(org.jboss.msc.service.ServiceName parentName, String relativeName)
-
bindInfoFor
public static ContextNames.BindInfo bindInfoFor(String jndiName)
Get the service name of a NamingStore- Parameters:
jndiName- the jndi name- Returns:
- the bind info for the jndi name
-
-