Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.activemq.util
Class FactoryFinder  view FactoryFinder download FactoryFinder.java

java.lang.Object
  extended byorg.activemq.util.FactoryFinder

public class FactoryFinder
extends java.lang.Object

A helper class to discover protocols dynamically to ensure that the system is extensible and has minimum runtime dependencies

Version:
$Revision: 1.1.1.1 $

Field Summary
private  java.util.Map classes
           
private  java.lang.String path
           
 
Constructor Summary
FactoryFinder(java.lang.String path)
           
 
Method Summary
private  java.lang.Class doFindClass(java.lang.String key)
           
 java.lang.Class findClass(java.lang.String key)
          Loads the class for the given key
protected  java.lang.Class loadClass(java.lang.String name)
           
 java.lang.Object newInstance(java.lang.String key)
          Creates a new instance of the given key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

path

private java.lang.String path

classes

private java.util.Map classes
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


findClass

public java.lang.Class findClass(java.lang.String key)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
Loads the class for the given key


doFindClass

private java.lang.Class doFindClass(java.lang.String key)
                             throws java.io.IOException,
                                    java.lang.ClassNotFoundException

loadClass

protected java.lang.Class loadClass(java.lang.String name)
                             throws java.lang.ClassNotFoundException