|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.panoptes.model.component.registry.ComponentRegistry
The registry for component name - component reference mapping. Original code from JBoss.
IComponent
,
ComponentEntry
Constructor Summary | |
ComponentRegistry()
Constructs a new ComponentRegistry. |
Method Summary | |
protected void |
add(ComponentEntry entry)
Adds an MBeanComponent entry WARNING: The object name should be fully qualified. |
boolean |
contains(ComponentName name)
|
protected boolean |
domainMatches(char[] src,
int spos,
char[] pat,
int ppos)
Compare the src and pat char arrays where ? |
protected boolean |
domainMatches(java.lang.String src,
java.lang.String pat)
Compare the src and pat strings where ? |
java.util.List |
findEntries(ComponentName pattern)
|
ComponentEntry |
get(ComponentName name)
|
java.lang.String |
getDefaultDomain()
|
Node |
getObjectInstance(ComponentName name)
|
int |
getSize()
|
protected ComponentName |
qualifyName(ComponentName name)
|
void |
registerComponent(Component component,
ComponentName name)
|
protected void |
remove(ComponentName name)
Removes an MBeanComponent entry WARNING: The object name should be fully qualified. |
void |
unregisterMBean(ComponentName name)
|
protected ComponentName |
validateAndQualifyName(ComponentName name)
Validates and qualifies an MBeanComponent Validates the name is not a pattern. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ComponentRegistry()
Method Detail |
public void registerComponent(Component component, ComponentName name) throws ComponentAlreadyExistsException
ComponentAlreadyExistsException
public void unregisterMBean(ComponentName name) throws ComponentNotFoundException
ComponentNotFoundException
public ComponentEntry get(ComponentName name) throws ComponentNotFoundException
ComponentNotFoundException
public java.lang.String getDefaultDomain()
public Node getObjectInstance(ComponentName name) throws ComponentNotFoundException
ComponentNotFoundException
public boolean contains(ComponentName name)
public int getSize()
public java.util.List findEntries(ComponentName pattern)
protected boolean domainMatches(java.lang.String src, java.lang.String pat)
protected boolean domainMatches(char[] src, int spos, char[] pat, int ppos)
protected void add(ComponentEntry entry) throws ComponentAlreadyExistsException
WARNING: The object name should be fully qualified.
entry
- the MBeanComponent entry to add
InstanceAlreadyExistsException
- when the MBeanComponent's object name
is already registered
ComponentAlreadyExistsException
protected void remove(ComponentName name) throws ComponentNotFoundException
name
- the object name of the entry to remove
InstanceNotFoundException
- when the object name is not
registered
ComponentNotFoundException
protected ComponentName validateAndQualifyName(ComponentName name)
Validates the name is not a pattern.
Adds the default domain if no domain is specified.
Checks the name is not in the reserved domain JMImplementation when
the magicToken is not JMI_DOMAIN
name
- the name to validate
RuntimeOperationException
- containing an
IllegalArgumentException for a problem with the nameprotected ComponentName qualifyName(ComponentName name)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |