de.myfoo.commonj.util
Class AbstractFactory

java.lang.Object
  extended by de.myfoo.commonj.util.AbstractFactory
All Implemented Interfaces:
javax.naming.spi.ObjectFactory
Direct Known Subclasses:
FooTimerManagerFactory, FooWorkManagerFactory

public abstract class AbstractFactory
extends java.lang.Object
implements javax.naming.spi.ObjectFactory

Abstract factory class.

Version:
1.0
Author:
Andreas Keldenich

Field Summary
static java.lang.String CONFIG_MAX_THREADS
          max number of threads in the pool
static java.lang.String CONFIG_MIN_THREADS
          min number of threads in the pool
static java.lang.String CONFIG_QUEUE_LENGTH
          length of the queue
protected  java.util.Map managers
           
 
Constructor Summary
AbstractFactory()
           
 
Method Summary
protected  void finalize()
          Cleanup when done.
protected  int getValue(java.lang.String name, java.lang.String value)
          Get an integer config value.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.naming.spi.ObjectFactory
getObjectInstance
 

Field Detail

CONFIG_MAX_THREADS

public static final java.lang.String CONFIG_MAX_THREADS
max number of threads in the pool

See Also:
Constant Field Values

CONFIG_MIN_THREADS

public static final java.lang.String CONFIG_MIN_THREADS
min number of threads in the pool

See Also:
Constant Field Values

CONFIG_QUEUE_LENGTH

public static final java.lang.String CONFIG_QUEUE_LENGTH
length of the queue

See Also:
Constant Field Values

managers

protected java.util.Map managers
Constructor Detail

AbstractFactory

public AbstractFactory()
Method Detail

finalize

protected void finalize()
                 throws java.lang.Throwable
Cleanup when done.

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

getValue

protected int getValue(java.lang.String name,
                       java.lang.String value)
                throws javax.naming.NamingException
Get an integer config value.

Parameters:
name - config value name
value - config value
Returns:
integer value
Throws:
javax.naming.NamingException