info.magnolia.registry
Class AbstractRegistry<D,P extends Provider<D>>

java.lang.Object
  extended by info.magnolia.registry.AbstractRegistry<D,P>
Type Parameters:
D - the definition that can be created by the provider
P - the provider to be registered

public abstract class AbstractRegistry<D,P extends Provider<D>>
extends Object

Superclass for Registries storing providers to generate definitions from.

Version:
$Id$

Constructor Summary
AbstractRegistry()
           
 
Method Summary
 D get(String id)
           
protected  Map<String,P> getProviders()
           
 void register(P provider)
           
 void unregister(String id)
           
 Set<String> unregisterAndRegister(Collection<String> remove, Collection<P> providers2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRegistry

public AbstractRegistry()
Method Detail

getProviders

protected Map<String,P> getProviders()

register

public void register(P provider)

unregister

public void unregister(String id)

unregisterAndRegister

public Set<String> unregisterAndRegister(Collection<String> remove,
                                         Collection<P> providers2)

get

public D get(String id)
      throws RegistrationException
Throws:
RegistrationException


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.