org.apache.jetspeed.om.registry.base
Class BaseMediaTypeRegistry

java.lang.Object
  extended byorg.apache.jetspeed.om.registry.base.BaseOrderedRegistry
      extended byorg.apache.jetspeed.om.registry.base.BaseMediaTypeRegistry
All Implemented Interfaces:
LocalRegistry, MediaTypeRegistry, Registry

public class BaseMediaTypeRegistry
extends BaseOrderedRegistry
implements MediaTypeRegistry

Extends BaseRegistry implementation to override object creation method

Version:
$Id: BaseMediaTypeRegistry.java,v 1.8 2005/03/21 18:21:37 sgala Exp $
Author:
Raphaël Luta

Field Summary
 
Fields inherited from class org.apache.jetspeed.om.registry.base.BaseOrderedRegistry
entries, idx
 
Constructor Summary
BaseMediaTypeRegistry()
           
 
Method Summary
 void addEntry(RegistryEntry entry)
          Add the given entry to the registry with the given name.
 RegistryEntry createEntry()
          Creates a new RegistryEntry instance compatible with the current Registry instance implementation
 java.util.Iterator findForCapability(CapabilityMap cm)
           
 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 setEntry(RegistryEntry entry)
          Set the entry in the registry with the specified name and Entry
 
Methods inherited from class org.apache.jetspeed.om.registry.base.BaseOrderedRegistry
addLocalEntry, getEntries, getEntry, getEntryCount, hasEntry, listEntryNames, removeLocalEntry, removeLocalEntry, setLocalEntry, toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.om.registry.Registry
getEntries, getEntry, getEntryCount, hasEntry, listEntryNames, toArray
 

Constructor Detail

BaseMediaTypeRegistry

public BaseMediaTypeRegistry()
Method Detail

findForCapability

public java.util.Iterator findForCapability(CapabilityMap cm)
Specified by:
findForCapability in interface MediaTypeRegistry

setEntry

public void setEntry(RegistryEntry entry)
              throws InvalidEntryException
Description copied from interface: Registry
Set the entry in the registry with the specified name and Entry

Specified by:
setEntry in interface Registry
Overrides:
setEntry in class BaseOrderedRegistry
Throws:
InvalidEntryException
See Also:
Registry#setEntry

addEntry

public void addEntry(RegistryEntry entry)
              throws InvalidEntryException
Description copied from interface: Registry
Add the given entry to the registry with the given name.

Specified by:
addEntry in interface Registry
Overrides:
addEntry in class BaseOrderedRegistry
Throws:
InvalidEntryException
See Also:
Registry.addEntry(java.lang.String, org.apache.jetspeed.om.registry.RegistryEntry)

removeEntry

public void removeEntry(java.lang.String name)
Description copied from interface: Registry
Removes the given entry from the Registry

Specified by:
removeEntry in interface Registry
Overrides:
removeEntry in class BaseOrderedRegistry
See Also:
Registry.removeEntry(java.lang.String, java.lang.String)

removeEntry

public void removeEntry(RegistryEntry entry)
Description copied from interface: Registry
Removes the given entry from the Registry

Specified by:
removeEntry in interface Registry
Overrides:
removeEntry in class BaseOrderedRegistry
See Also:
Registry.removeEntry(java.lang.String, java.lang.String)

createEntry

public RegistryEntry createEntry()
Creates a new RegistryEntry instance compatible with the current Registry instance implementation

Specified by:
createEntry in interface Registry
Overrides:
createEntry in class BaseOrderedRegistry
Returns:
the newly created RegistryEntry


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.