public class ContextNames extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ContextNames.BindInfo |
Modifier and Type | Field and Description |
---|---|
static org.jboss.msc.service.ServiceName |
APPLICATION_CONTEXT_SERVICE_NAME
Parent ServiceName for java:app namespace
|
static org.jboss.msc.service.ServiceName |
COMPONENT_CONTEXT_SERVICE_NAME
Parent ServiceName for java:comp namespace
|
static org.jboss.msc.service.ServiceName |
EXPORTED_CONTEXT_SERVICE_NAME
ServiceName for java:jboss/exported namespace
|
static org.jboss.msc.service.ServiceName |
GLOBAL_CONTEXT_SERVICE_NAME
ServiceName for java:global namespace
|
static org.jboss.msc.service.ServiceName |
JAVA_CONTEXT_SERVICE_NAME
ServiceName for java: namespace
|
static org.jboss.msc.service.ServiceName |
JBOSS_CONTEXT_SERVICE_NAME
ServiceName for java:jboss namespace
|
static org.jboss.msc.service.ServiceName |
MODULE_CONTEXT_SERVICE_NAME
Parent ServiceName for java:module namespacef
|
static org.jboss.msc.service.ServiceName |
NAMING
Parent ServiceName for all naming services.
|
Constructor and Description |
---|
ContextNames() |
Modifier and Type | Method and Description |
---|---|
static ContextNames.BindInfo |
bindInfoFor(String jndiName)
Get the service name of a NamingStore
|
static ContextNames.BindInfo |
bindInfoFor(String app,
String module,
String comp,
String context)
Get the service name of a context, or
null if there is no service mapping for the context name. |
static ContextNames.BindInfo |
bindInfoForEnvEntry(String app,
String module,
String comp,
boolean useCompNamespace,
String envEntryName)
Get the service name of an environment entry
|
static org.jboss.msc.service.ServiceName |
buildServiceName(org.jboss.msc.service.ServiceName parentName,
String relativeName) |
static org.jboss.msc.service.ServiceName |
contextServiceNameOfApplication(String app)
Get the base service name of an application's JNDI namespace.
|
static org.jboss.msc.service.ServiceName |
contextServiceNameOfComponent(String app,
String module,
String comp)
Get the base service name of a component's JNDI namespace.
|
static org.jboss.msc.service.ServiceName |
contextServiceNameOfModule(String app,
String module)
Get the base service name of a module's JNDI namespace.
|
public static final org.jboss.msc.service.ServiceName NAMING
public static final org.jboss.msc.service.ServiceName JAVA_CONTEXT_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName COMPONENT_CONTEXT_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName JBOSS_CONTEXT_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName GLOBAL_CONTEXT_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName APPLICATION_CONTEXT_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName MODULE_CONTEXT_SERVICE_NAME
public static final org.jboss.msc.service.ServiceName EXPORTED_CONTEXT_SERVICE_NAME
public static org.jboss.msc.service.ServiceName contextServiceNameOfComponent(String app, String module, String comp)
app
- the application name (must not be null
)module
- the module name (must not be null
)comp
- the component name (must not be null
)public static org.jboss.msc.service.ServiceName contextServiceNameOfModule(String app, String module)
app
- the application name (must not be null
)module
- the module name (must not be null
)public static org.jboss.msc.service.ServiceName contextServiceNameOfApplication(String app)
app
- the application name (must not be null
)public static ContextNames.BindInfo bindInfoFor(String app, String module, String comp, String context)
null
if there is no service mapping for the context name.app
- the application namemodule
- the module namecomp
- the component namecontext
- the context to checkpublic static ContextNames.BindInfo bindInfoForEnvEntry(String app, String module, String comp, boolean useCompNamespace, String envEntryName)
app
- the application namemodule
- the module namecomp
- the component nameuseCompNamespace
- If the component has its own comp namespaceenvEntryName
- The env entry namenull
if there is no servicepublic static org.jboss.msc.service.ServiceName buildServiceName(org.jboss.msc.service.ServiceName parentName, String relativeName)
public static ContextNames.BindInfo bindInfoFor(String jndiName)
jndiName
- the jndi nameCopyright © 2015 JBoss by Red Hat. All rights reserved.