org.eclipse.swordfish.internal.core.planner
Class InterceptorRegistry

java.lang.Object
  extended by org.eclipse.swordfish.internal.core.util.RegistryImpl<Interceptor>
      extended by org.eclipse.swordfish.internal.core.planner.InterceptorRegistry
All Implemented Interfaces:
ReadOnlyRegistry<Interceptor>, Registry<Interceptor>, org.springframework.beans.factory.DisposableBean, org.springframework.osgi.context.BundleContextAware

public class InterceptorRegistry
extends RegistryImpl<Interceptor>
implements org.springframework.osgi.context.BundleContextAware

Author:
dwolz

Constructor Summary
InterceptorRegistry()
           
 
Method Summary
 void register(Interceptor key, java.util.Map<java.lang.String,?> properties)
          Perform registration of an item with its properties.
 void setBundleContext(org.osgi.framework.BundleContext bundleContext)
           
 
Methods inherited from class org.eclipse.swordfish.internal.core.util.RegistryImpl
destroy, getKeySet, getProperties, unregister
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterceptorRegistry

public InterceptorRegistry()
Method Detail

setBundleContext

public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
Specified by:
setBundleContext in interface org.springframework.osgi.context.BundleContextAware
Overrides:
setBundleContext in class RegistryImpl<Interceptor>

register

public void register(Interceptor key,
                     java.util.Map<java.lang.String,?> properties)
              throws SwordfishException
Description copied from interface: Registry
Perform registration of an item with its properties.

Specified by:
register in interface Registry<Interceptor>
Overrides:
register in class RegistryImpl<Interceptor>
Parameters:
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.
Throws:
SwordfishException - risen in case of double registration of the same item, an invalid item, or an invalid properties argument.