info.magnolia.registry
Class AbstractRegistry<D,P extends Provider<D>>
java.lang.Object
info.magnolia.registry.AbstractRegistry<D,P>
- Type Parameters:
D
- the definition that can be created by the providerP
- 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$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRegistry
public AbstractRegistry()
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.