org.apache.openejb.util
Class FactoryFinder

java.lang.Object
  extended by org.apache.openejb.util.FactoryFinder

public class FactoryFinder
extends Object


Constructor Summary
FactoryFinder(String path)
           
 
Method Summary
 Object newInstance(String key)
          Creates a new instance of the given key
 Object newInstance(String key, String propertyPrefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryFinder

public FactoryFinder(String path)
Method Detail

newInstance

public Object newInstance(String key)
                   throws IllegalAccessException,
                          InstantiationException,
                          IOException,
                          ClassNotFoundException
Creates a new instance of the given key

Parameters:
key - is the key to add to the path to find a text file containing the factory name
Returns:
a newly created instance
Throws:
IllegalAccessException
InstantiationException
IOException
ClassNotFoundException

newInstance

public Object newInstance(String key,
                          String propertyPrefix)
                   throws IllegalAccessException,
                          InstantiationException,
                          IOException,
                          ClassNotFoundException
Throws:
IllegalAccessException
InstantiationException
IOException
ClassNotFoundException


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.