public class ConfigurationEPackageRegistryComponent
extends java.util.HashMap<java.lang.String,java.lang.Object>
ConfigurationEPackageRegistryComponent to be enabled as OSGi component| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigurationEPackageRegistryComponent.Delegator
A package registry implementation that delegates to a class loader specific registry.
|
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Map<java.lang.ClassLoader,EPackage.Registry> |
classLoaderToRegistryMap
A map from class loader to its associated registry.
|
protected EPackage.Registry |
delegateRegistry
The delegate registry.
|
| Constructor and Description |
|---|
ConfigurationEPackageRegistryComponent()
Creates a non-delegating instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(java.lang.Object key)
Returns whether this map or the delegate map contains this key.
|
protected EFactory |
delegatedGetEFactory(java.lang.String nsURI)
Returns the factory from the delegate registry, if there is one.
|
protected EPackage |
delegatedGetEPackage(java.lang.String nsURI)
Returns the package from the delegate registry, if there is one.
|
EFactory |
getEFactory(java.lang.String nsURI) |
EPackage |
getEPackage(java.lang.String nsURI) |
static EPackage.Registry |
getRegistry(java.lang.ClassLoader classLoader)
Returns the package registry associated with the given class loader.
|
protected void |
initialize(EPackage ePackage)
Creates a delegating instance.
|
void |
setDelegateRegistry(EPackage.Registry delegateRegistry) |
void |
unsetDelegateRegistry(EPackage.Registry delegateRegistry) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesprotected EPackage.Registry delegateRegistry
protected static java.util.Map<java.lang.ClassLoader,EPackage.Registry> classLoaderToRegistryMap
public ConfigurationEPackageRegistryComponent()
public void setDelegateRegistry(EPackage.Registry delegateRegistry)
public void unsetDelegateRegistry(EPackage.Registry delegateRegistry)
public EPackage getEPackage(java.lang.String nsURI)
public EFactory getEFactory(java.lang.String nsURI)
protected void initialize(EPackage ePackage)
protected EPackage delegatedGetEPackage(java.lang.String nsURI)
protected EFactory delegatedGetEFactory(java.lang.String nsURI)
public boolean containsKey(java.lang.Object key)
keySet().contains(key).containsKey in interface java.util.Map<java.lang.String,java.lang.Object>containsKey in class java.util.HashMap<java.lang.String,java.lang.Object>key - the key whose presence in this map is to be tested.public static EPackage.Registry getRegistry(java.lang.ClassLoader classLoader)
classLoader - the class loader.Data In Motion Consulting