org.objectweb.jeremie.libs.binding.echannel
Class EventChannelFactoryFactory

java.lang.Object
  |
  +--org.objectweb.jonathan.libs.kernel.GenericFactory
        |
        +--org.objectweb.jeremie.libs.binding.echannel.EventChannelFactoryFactory
All Implemented Interfaces:
Factory

public class EventChannelFactoryFactory
extends GenericFactory

EventChannelFactory {#link org.objectweb.jonathan.apis.kernel.Factory Factory} implementation.


Constructor Summary
EventChannelFactoryFactory()
           
 
Method Summary
protected  Object[] getUsedComponents(Context _c)
          Returns the components required to create a new EventChannelFactory instance.
static EventChannelFactory newEventChannelFactory(Class classe)
          Returns a new EventChannelFactory.
protected  Object newInstance(Context _c, Object[] _used_components)
          Returns a new EventChannelFactory instance created using the provided components.
 
Methods inherited from class org.objectweb.jonathan.libs.kernel.GenericFactory
configure, newInstance, newObject, register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventChannelFactoryFactory

public EventChannelFactoryFactory()
Method Detail

getUsedComponents

protected final Object[] getUsedComponents(Context _c)
Returns the components required to create a new EventChannelFactory instance.

The provided context must contain a component of name "ChunkFactory", of type ChunkFactory.

It must also contain a component of name "MarshallerFactory", of type MarshallerFactory.

Overrides:
getUsedComponents in class GenericFactory
Parameters:
_c - a Context instance;
Returns:
the components needed to create an EventChannelFactory instance.

newInstance

protected final Object newInstance(Context _c,
                                   Object[] _used_components)
                            throws JonathanException
Returns a new EventChannelFactory instance created using the provided components.
Overrides:
newInstance in class GenericFactory
Parameters:
_c - a context;
_used_components - components to be used to create a new EventChannelFactory instance;
Returns:
a new EventChannelFactory instance;
Throws:
JonathanException - if something goes wrong.

newEventChannelFactory

public static EventChannelFactory newEventChannelFactory(Class classe)
                                                  throws JonathanException
Returns a new EventChannelFactory.

This method first creates a bootstrap Context using the provided class and Kernel. Then it calls the newObject method with that context as a parameter.

Parameters:
classe - the class of the calling object;
Returns:
a new EventChannelFactory instance.
Throws:
JonathanException - if something goes wrong.