public interface JndiMBean
| Modifier and Type | Method and Description |
|---|---|
void |
alias(String name,
String alias)
Create another JNDI name (alias) for a given one.
|
void |
bind(Long serviceId,
String name)
Bind an OSGi service with a JNDI name.
|
void |
create(String context)
Create a JNDI sub-context.
|
void |
delete(String context)
Delete a JNDI sub-context.
|
List<String> |
getContexts()
Get a list of JNDI sub-contexts (as attribute).
|
List<String> |
getContexts(String context)
Get a list of JNDI sub-contexts children of a given base context.
|
Map<String,String> |
getNames()
Get a map of JNDI names/class names (as attribute).
|
Map<String,String> |
getNames(String context)
Get a map of JNDI names/class names children of a given base context.
|
void |
unbind(String name)
Unbind a given JNDI name.
|
Map<String,String> getNames() throws MBeanException
MBeanExceptionList<String> getContexts() throws MBeanException
MBeanExceptionMap<String,String> getNames(String context) throws MBeanException
context - the base context.MBeanExceptionList<String> getContexts(String context) throws MBeanException
context - the base context.MBeanExceptionvoid create(String context) throws MBeanException
context - the JNDI sub-context name.MBeanExceptionvoid delete(String context) throws MBeanException
context - the JNDI sub-context name.MBeanExceptionvoid alias(String name, String alias) throws MBeanException
name - the "source" JNDI name.alias - the JNDI alias name.MBeanExceptionvoid bind(Long serviceId, String name) throws MBeanException
serviceId - the OSGi service id (service.id property on the service, created by the framework).name - the JNDI name.MBeanExceptionvoid unbind(String name) throws MBeanException
name - the JNDI name.MBeanExceptionCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.