Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.model
Class ExtensionRegistry<T>

java.lang.Object
  extended by org.nuxeo.runtime.model.ExtensionRegistry<T>
Type Parameters:
T - - the type of contribution managed by this registry
Direct Known Subclasses:
TypeRegistry

public abstract class ExtensionRegistry<T>
extends Object

A registry of extensions. Designed as a base class for registries that supports extension merge. The registry keeps track of registered extensions to be able to remove them without breaking the merges. The implementation is still required to do the actual merge of two contributions when needed.

Author:
Bogdan Stefanescu

Constructor Summary
ExtensionRegistry()
           
 
Method Summary
abstract  void addContribution(T contrib, Extension extension)
           
 void dispose()
           
 void registerExtension(Extension extension)
           
abstract  void removeContributions()
          Remove all registered contributions.
 void unregisterExtension(Extension extension)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionRegistry

public ExtensionRegistry()
Method Detail

registerExtension

public void registerExtension(Extension extension)

unregisterExtension

public void unregisterExtension(Extension extension)

dispose

public void dispose()

addContribution

public abstract void addContribution(T contrib,
                                     Extension extension)

removeContributions

public abstract void removeContributions()
Remove all registered contributions. This method will be called by unregisterExtension to reset the registry so that remaining contributions are registered again


Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.