|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.common.ExtensionRegistry
public final class ExtensionRegistry
The extension registry may be used as simple replacement for the extension point mechanism in case one does not want to expose internal types. It is capable of retrieving actual extension point information, but currently does not support contributing such.
Field Summary | |
---|---|
static ExtensionRegistry |
INSTANCE
The singleton instance. |
Method Summary | ||
---|---|---|
|
get(String id,
Class<T> clazz)
Returns the requested extension point. |
|
|
get(String id,
Class<T> clazz,
T defaultInstance,
boolean shouldSetDefault)
Returns the requested extension point. |
|
void |
remove(String id)
Remove the extension with the given ID. |
|
|
set(String id,
T t)
Set the extension. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ExtensionRegistry INSTANCE
Method Detail |
---|
public <T> T get(String id, Class<T> clazz, T defaultInstance, boolean shouldSetDefault)
T
- the expected typeid
- the ID of the extension point to be returnedclazz
- the expected typedefaultInstance
- a default instance to be returned in case no extension point has been foundshouldSetDefault
- whether the default instance should be registered
public <T> T get(String id, Class<T> clazz)
T
- the expected typeid
- the ID of the extension point to be returnedclazz
- the expected type
public <T> void set(String id, T t)
T
- the type of the extension to be setid
- the ID of the extension point to be returnedt
- the extension to be setpublic void remove(String id)
id
- the ID of the extension to be removed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |