| Constructor and Description |
|---|
JndiMBeanImpl() |
| 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.
|
JndiService |
getJndiService() |
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 |
setJndiService(JndiService jndiService) |
void |
unbind(String name)
Unbind a given JNDI name.
|
public Map<String,String> getNames() throws MBeanException
JndiMBeangetNames in interface JndiMBeanMBeanExceptionpublic List<String> getContexts() throws MBeanException
JndiMBeangetContexts in interface JndiMBeanMBeanExceptionpublic Map<String,String> getNames(String context) throws MBeanException
JndiMBeangetNames in interface JndiMBeancontext - the base context.MBeanExceptionpublic List<String> getContexts(String context) throws MBeanException
JndiMBeangetContexts in interface JndiMBeancontext - the base context.MBeanExceptionpublic void alias(String name, String alias) throws MBeanException
JndiMBeanalias in interface JndiMBeanname - the "source" JNDI name.alias - the JNDI alias name.MBeanExceptionpublic void bind(Long serviceId, String name) throws MBeanException
JndiMBeanbind in interface JndiMBeanserviceId - the OSGi service id (service.id property on the service, created by the framework).name - the JNDI name.MBeanExceptionpublic void unbind(String name) throws MBeanException
JndiMBeanunbind in interface JndiMBeanname - the JNDI name.MBeanExceptionpublic void create(String context) throws MBeanException
JndiMBeancreate in interface JndiMBeancontext - the JNDI sub-context name.MBeanExceptionpublic void delete(String context) throws MBeanException
JndiMBeandelete in interface JndiMBeancontext - the JNDI sub-context name.MBeanExceptionpublic JndiService getJndiService()
public void setJndiService(JndiService jndiService)
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.