|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jetspeed.om.registry.base.BaseRegistry
Provides base functionality within a Registry.
| Field Summary | |
protected static boolean |
DEBUG
|
protected java.util.Map |
entries
|
| Constructor Summary | |
BaseRegistry()
|
|
| 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 static final boolean DEBUG
protected java.util.Map entries
| Constructor Detail |
public BaseRegistry()
| Method Detail |
public int getEntryCount()
Registry
getEntryCount in interface RegistryRegistry#getEntryCount
public RegistryEntry getEntry(java.lang.String name)
throws InvalidEntryException
Registry
getEntry in interface RegistryInvalidEntryExceptionRegistry#getEntry
public void setEntry(RegistryEntry entry)
throws InvalidEntryException
Registry
setEntry in interface RegistryInvalidEntryExceptionRegistry#setEntry
public void addEntry(RegistryEntry entry)
throws InvalidEntryException
Registry
addEntry in interface RegistryInvalidEntryExceptionRegistry#addEntrypublic boolean hasEntry(java.lang.String name)
Registry
hasEntry in interface Registryname - the name of the entry that we are looking for
Registry#hasEntrypublic void removeEntry(java.lang.String name)
Registry
removeEntry in interface Registryname - the name of the entry to remove from the RegistryRegistry#removeEntrypublic void removeEntry(RegistryEntry entry)
Registry
removeEntry in interface Registryentry - the RegistryEntry to removeRegistry#removeEntrypublic java.util.Enumeration getEntries()
Registry
getEntries in interface RegistryRegistry#getEntriespublic java.util.Iterator listEntryNames()
Registry
listEntryNames in interface RegistryRegistry#listEntryNamespublic RegistryEntry[] toArray()
Registry
toArray in interface RegistryRegistry#toArraypublic RegistryEntry createEntry()
createEntry in interface Registry
public void setLocalEntry(RegistryEntry entry)
throws InvalidEntryException
setLocalEntry in interface LocalRegistryentry - the RegistryEntry to store
InvalidEntryException
public void addLocalEntry(RegistryEntry entry)
throws InvalidEntryException
addLocalEntry in interface LocalRegistryentry - the RegistryEntry to store
InvalidEntryExceptionpublic void removeLocalEntry(java.lang.String name)
removeLocalEntry in interface LocalRegistryname - the name of the RegistryEntry to removepublic void removeLocalEntry(RegistryEntry entry)
removeLocalEntry in interface LocalRegistryentry - the RegistryEntry to remove
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||