|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.om.registry.base.BaseOrderedRegistry
Provides a basic registry implementation that keep the elements ordered.
Field Summary | |
protected java.util.List |
entries
|
protected java.util.Map |
idx
|
Constructor Summary | |
BaseOrderedRegistry()
|
Method Summary | |
void |
addEntry(RegistryEntry entry)
Add the given entry to the registry with the given name. |
void |
addLocalEntry(RegistryEntry entry)
This method is used to only add the entry in the local memory cache of the registry without any coherency check with persistent storage |
RegistryEntry |
createEntry()
Creates a new RegistryEntry instance compatible with the current Registry instance implementation |
java.util.Enumeration |
getEntries()
Get all entries within this Registry |
RegistryEntry |
getEntry(java.lang.String name)
Get the entry in the registry with the specified name |
int |
getEntryCount()
Get the number of entries within the Registry. |
boolean |
hasEntry(java.lang.String name)
Tests if an entry with the specified name exists within the Registry |
java.util.Iterator |
listEntryNames()
List all the entry names within this Registry |
void |
removeEntry(RegistryEntry entry)
Removes the given entry from the Registry |
void |
removeEntry(java.lang.String name)
Removes the given entry from the Registry |
void |
removeLocalEntry(RegistryEntry entry)
This method is used to only remove the entry from the local memory cache of the registry without any coherency check with persistent storage |
void |
removeLocalEntry(java.lang.String name)
This method is used to only remove the entry from the local memory cache of the registry without any coherency check with persistent storage |
void |
setEntry(RegistryEntry entry)
Set the entry in the registry with the specified name and Entry |
void |
setLocalEntry(RegistryEntry entry)
This method is used to only set the entry in the local memory cache of the registry without any coherency check with persistent storage |
RegistryEntry[] |
toArray()
Get all entries within this Registry as an array |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.List entries
protected java.util.Map idx
Constructor Detail |
public BaseOrderedRegistry()
Method Detail |
public int getEntryCount()
Registry
getEntryCount
in interface Registry
Registry#getEntryCount
public RegistryEntry getEntry(java.lang.String name) throws InvalidEntryException
Registry
getEntry
in interface Registry
InvalidEntryException
Registry#getEntry
public void setEntry(RegistryEntry entry) throws InvalidEntryException
Registry
setEntry
in interface Registry
InvalidEntryException
Registry#setEntry
public void addEntry(RegistryEntry entry) throws InvalidEntryException
Registry
addEntry
in interface Registry
InvalidEntryException
Registry#addEntry
public void removeEntry(java.lang.String name)
Registry
removeEntry
in interface Registry
name
- the name of the entry to remove from the RegistryRegistry#removeEntry
public void removeEntry(RegistryEntry entry)
Registry
removeEntry
in interface Registry
entry
- the RegistryEntry to removeRegistry#removeEntry
public boolean hasEntry(java.lang.String name)
Registry
hasEntry
in interface Registry
name
- the name of the entry that we are looking for
Registry#hasEntry
public java.util.Enumeration getEntries()
Registry
getEntries
in interface Registry
Registry#getEntries
public java.util.Iterator listEntryNames()
Registry
listEntryNames
in interface Registry
Registry#listEntryNames
public RegistryEntry[] toArray()
Registry
toArray
in interface Registry
Registry#toArray
public RegistryEntry createEntry()
createEntry
in interface Registry
public void setLocalEntry(RegistryEntry entry) throws InvalidEntryException
setLocalEntry
in interface LocalRegistry
entry
- the RegistryEntry to store
InvalidEntryException
public void addLocalEntry(RegistryEntry entry) throws InvalidEntryException
addLocalEntry
in interface LocalRegistry
entry
- the RegistryEntry to store
InvalidEntryException
public void removeLocalEntry(java.lang.String name)
removeLocalEntry
in interface LocalRegistry
name
- the name of the RegistryEntry to removepublic void removeLocalEntry(RegistryEntry entry)
removeLocalEntry
in interface LocalRegistry
entry
- the RegistryEntry to remove
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |