|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.kernel.basic.BasicRegistry
public class BasicRegistry
Constructor Summary | |
---|---|
BasicRegistry()
|
Method Summary | |
---|---|
GBeanInstance |
getGBeanInstance(AbstractName abstractName)
|
GBeanInstance |
getGBeanInstance(ObjectName name)
Return the GBeanInstance registered with the supplied name. |
GBeanInstance |
getGBeanInstance(String shortName,
Class type)
|
GBeanInstance |
getGBeanInstanceByInstance(Object instance)
|
void |
instanceCreated(Object instance,
GBeanInstance gbeanInstance)
|
void |
instanceDestroyed(Object instance)
|
boolean |
isRegistered(AbstractName refInfo)
|
boolean |
isRegistered(ObjectName name)
See if there is a GBean registered with a specific name. |
Set |
listGBeans(AbstractNameQuery query)
|
Set |
listGBeans(ObjectName pattern)
Search the objectNameRegistry for GBeans matching a name pattern. |
void |
register(GBeanInstance gbeanInstance)
Register a GBean instance. |
void |
start(Kernel kernel)
Start the objectNameRegistry and associate it with a kernel. |
void |
stop()
Shut down the objectNameRegistry and unregister any GBeans |
void |
unregister(AbstractName abstractName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicRegistry()
Method Detail |
---|
public void start(Kernel kernel)
kernel
- the kernel to associate withpublic void stop()
public boolean isRegistered(ObjectName name)
name
- the name of the GBean to check for
public boolean isRegistered(AbstractName refInfo)
public void register(GBeanInstance gbeanInstance) throws GBeanAlreadyExistsException
gbeanInstance
- the GBean to register
GBeanAlreadyExistsException
- if there is already a GBean registered with the instance's namepublic void unregister(AbstractName abstractName) throws GBeanNotFoundException
GBeanNotFoundException
public void instanceCreated(Object instance, GBeanInstance gbeanInstance)
instanceCreated
in interface InstanceRegistry
public void instanceDestroyed(Object instance)
instanceDestroyed
in interface InstanceRegistry
public GBeanInstance getGBeanInstanceByInstance(Object instance)
public GBeanInstance getGBeanInstance(ObjectName name) throws GBeanNotFoundException
name
- the name of the instance to return
GBeanNotFoundException
- if there is no GBean registered with the supplied namepublic GBeanInstance getGBeanInstance(AbstractName abstractName) throws GBeanNotFoundException
GBeanNotFoundException
public GBeanInstance getGBeanInstance(String shortName, Class type) throws GBeanNotFoundException
GBeanNotFoundException
public Set listGBeans(ObjectName pattern)
pattern
- the object name pattern to search for
public Set listGBeans(AbstractNameQuery query)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |