org.ow2.jonas.cdi.weld.internal.easybeans
Class EZBFactoriesRegistryImpl

java.lang.Object
  extended by org.ow2.jonas.cdi.weld.internal.easybeans.EZBFactoriesRegistryImpl
All Implemented Interfaces:
EZBFactoriesRegistry

public class EZBFactoriesRegistryImpl
extends Object
implements EZBFactoriesRegistry

An OSGi-iPOJO component providing EZBFactoriesRegistry service

Author:
Loic Albertin

Constructor Summary
EZBFactoriesRegistryImpl()
           
 
Method Summary
 org.ow2.easybeans.api.Factory<?,?> getBeanFactory(String moduleName, String beanName)
          Retrieves a factory based on a given module name and bean name.
 Collection<org.ow2.easybeans.api.Factory<?,?>> getFactories(String moduleName)
          Retrieves all factories registered for a given module name
 void registerBeanFactory(org.ow2.easybeans.api.Factory<?,?> factory)
          Registers a Factory based on its module name (EZBContainerConfig.getModuleName()) and bean name (IBeanInfo.getName()
 void unregisterFactories(String moduleName)
          Un-register all factories for a given module name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EZBFactoriesRegistryImpl

public EZBFactoriesRegistryImpl()
Method Detail

registerBeanFactory

public void registerBeanFactory(org.ow2.easybeans.api.Factory<?,?> factory)
Description copied from interface: EZBFactoriesRegistry
Registers a Factory based on its module name (EZBContainerConfig.getModuleName()) and bean name (IBeanInfo.getName()

Specified by:
registerBeanFactory in interface EZBFactoriesRegistry
Parameters:
factory - the factory to register

getBeanFactory

public org.ow2.easybeans.api.Factory<?,?> getBeanFactory(String moduleName,
                                                         String beanName)
Description copied from interface: EZBFactoriesRegistry
Retrieves a factory based on a given module name and bean name.

Specified by:
getBeanFactory in interface EZBFactoriesRegistry
Parameters:
moduleName - The given module name
beanName - The given module name
Returns:
The retrieved Factory or null if there is no corresponding factories

getFactories

public Collection<org.ow2.easybeans.api.Factory<?,?>> getFactories(String moduleName)
Description copied from interface: EZBFactoriesRegistry
Retrieves all factories registered for a given module name

Specified by:
getFactories in interface EZBFactoriesRegistry
Parameters:
moduleName - The given module name
Returns:
A collection of all registered factories for this module name

unregisterFactories

public void unregisterFactories(String moduleName)
Description copied from interface: EZBFactoriesRegistry
Un-register all factories for a given module name

Specified by:
unregisterFactories in interface EZBFactoriesRegistry
Parameters:
moduleName - The given module name


Copyright © 2013 OW2 Consortium. All Rights Reserved.