org.eclipse.swordfish.core.util
Interface ReadOnlyRegistry<T>

Type Parameters:
T - Type of key object (mostly component type) used in the registry.
All Known Subinterfaces:
Registry<T>
All Known Implementing Classes:
ConfigurationConsumerRegistry, EventHandlerRegistry, InterceptorExceptionListenerRegistry, InterceptorRegistry, PollableConfigurationSourceRegistry, RegistryImpl

public interface ReadOnlyRegistry<T>

Read-Only interface to internal Swordfish registries. When a component known to Swordfish is registered as OSGI service, Swordfish collects Properties and configuration information assigned to the component and stores them in a registry using the component identity (mostly the component instance) as key. The present read-only interface to such a registry is provided as argument where appropriate.


Method Summary
 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.
 

Method Detail

getKeySet

java.util.Set<T> getKeySet()
Read access to the components for which properties are registered.

Returns:
the keys of the registry, i.e. the components registered.

getProperties

java.util.Map<java.lang.String,?> getProperties(T key)
Read access to the property maps.

Parameters:
key - the component for which the properties are registerd.
Returns:
the properties for the specified component as unmodifiable Map. A return value of null indicates that a component has not been registered. A component registered with no properties will provide an empty Map.