de.myfoo.commonj.work
Class FooWorkManagerFactory

java.lang.Object
  extended by de.myfoo.commonj.util.AbstractFactory
      extended by de.myfoo.commonj.work.FooWorkManagerFactory
All Implemented Interfaces:
javax.naming.spi.ObjectFactory

public final class FooWorkManagerFactory
extends AbstractFactory

Factory class for WorkManagers.

Version:
1.0
Author:
Andreas Keldenich

Field Summary
 
Fields inherited from class de.myfoo.commonj.util.AbstractFactory
CONFIG_MAX_THREADS, CONFIG_MIN_THREADS, CONFIG_QUEUE_LENGTH, managers
 
Constructor Summary
FooWorkManagerFactory()
           
 
Method Summary
 java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment)
          Factory method that returns an instance of the requested WorkManager.
 
Methods inherited from class de.myfoo.commonj.util.AbstractFactory
finalize, getValue
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FooWorkManagerFactory

public FooWorkManagerFactory()
Method Detail

getObjectInstance

public java.lang.Object getObjectInstance(java.lang.Object obj,
                                          javax.naming.Name name,
                                          javax.naming.Context nameCtx,
                                          java.util.Hashtable environment)
                                   throws java.lang.Exception
Factory method that returns an instance of the requested WorkManager.

Parameters:
obj - The possibly null object containing location or reference information that can be used in creating an object.
name - The name of this object relative to nameCtx, or null if no name is specified.
nameCtx - The context relative to which the name parameter is specified, or null if name is relative to the default initial context.
environment - The possibly null environment that is # used in creating the object.
Returns:
The requested WorkManager
Throws:
java.lang.Exception - if this object factory encountered an exception while attempting to create an object, and no other object factories are to be tried.