org.apache.activemq.util
Class FactoryFinder

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

public class FactoryFinder
extends java.lang.Object


Constructor Summary
FactoryFinder(java.lang.String path)
           
 
Method Summary
 java.lang.Object newInstance(java.lang.String key)
          Creates a new instance of the given key
 java.lang.Object newInstance(java.lang.String key, java.lang.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(java.lang.String path)
Method Detail

newInstance

public java.lang.Object newInstance(java.lang.String key)
                             throws java.lang.IllegalAccessException,
                                    java.lang.InstantiationException,
                                    java.io.IOException,
                                    java.lang.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:
java.lang.IllegalAccessException
java.lang.InstantiationException
java.io.IOException
java.lang.ClassNotFoundException

newInstance

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


Copyright © 2010 Apache Software Foundation. All Rights Reserved.