org.objectweb.jonathan.libs.resources
Class JSchedulerFactory

java.lang.Object
  |
  +--org.objectweb.jonathan.libs.kernel.GenericFactory
        |
        +--org.objectweb.jonathan.libs.resources.JSchedulerFactory
All Implemented Interfaces:
Factory

public class JSchedulerFactory
extends GenericFactory

JScheduler Factory implementation.


Constructor Summary
JSchedulerFactory()
           
 
Method Summary
protected  Object[] getUsedComponents(Context _context)
          Returns the components required to create a new JScheduler instance.
protected  Object newInstance(Context _context, Object[] _used_components)
          Returns a new JScheduler 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

JSchedulerFactory

public JSchedulerFactory()
Method Detail

getUsedComponents

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

The provided context must contain an element of name "ContextFactory" and type ContextFactory; it may also contain an element of name "max_waiting" and type Integer, and a Boolean element named "verbose", used to initialize the corresponding values in JScheduler.

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

newInstance

protected final Object newInstance(Context _context,
                                   Object[] _used_components)
Returns a new JScheduler instance created using the provided components.
Overrides:
newInstance in class GenericFactory
Parameters:
_context - a context;
_used_components - components to be used to create a new JScheduler instance;
Returns:
a new JScheduler instance;