|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swordfish.internal.core.util.RegistryImpl<T>
public class RegistryImpl<T>
| Constructor Summary | |
|---|---|
RegistryImpl()
|
|
| Method Summary | |
|---|---|
void |
destroy()
|
java.util.Set<T> |
getKeySet()
Read access to the components for which properties are registered. |
java.util.Map<java.lang.String,?> |
getProperties(T key)
Read access to the property maps. |
void |
register(T key,
java.util.Map<java.lang.String,?> properties)
Perform registration of an item with its properties. |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext)
|
void |
unregister(T key,
java.util.Map<java.lang.String,?> properties)
Unregister an item. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegistryImpl()
| Method Detail |
|---|
public void register(T key,
java.util.Map<java.lang.String,?> properties)
throws SwordfishException
Registry
register in interface Registry<T>key - The key i.e. the component for which properties are
registered.properties - The properties of the registered item. Must not
be null, but if there are no properties, an empty
Map must be provided.
SwordfishException - risen in case of double registration
of the same item, an invalid item, or an invalid properties
argument.
public void unregister(T key,
java.util.Map<java.lang.String,?> properties)
throws SwordfishException
Registry
unregister in interface Registry<T>key - - to be unregistered. When the item is not registered,
nothing happens.
SwordfishException - if an item cannot be unregistered due to
the internal state of the system.public java.util.Set<T> getKeySet()
ReadOnlyRegistry
getKeySet in interface ReadOnlyRegistry<T>public java.util.Map<java.lang.String,?> getProperties(T key)
ReadOnlyRegistry
getProperties in interface ReadOnlyRegistry<T>key - the component for which the properties are registerd.
null indicates that a component
has not been registered. A component registered with no properties
will provide an empty Map.public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
setBundleContext in interface org.springframework.osgi.context.BundleContextAware
public void destroy()
throws java.lang.Exception
destroy in interface org.springframework.beans.factory.DisposableBeanjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||