|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.DefaultFactoryFinder
public class DefaultFactoryFinder
Default factory finder.
| Field Summary | |
|---|---|
protected ConcurrentHashMap<String,Class> |
classMap
|
| Constructor Summary | |
|---|---|
DefaultFactoryFinder(ClassResolver classResolver,
String resourcePath)
|
|
| Method Summary | ||
|---|---|---|
Class |
findClass(String key)
Finds the given factory class using the the key to lookup. |
|
Class |
findClass(String key,
String propertyPrefix)
Finds the given factory class using the the key to lookup. |
|
String |
getResourcePath()
Gets the resource classpath. |
|
Object |
newInstance(String key)
Creates a new class instance using the key to lookup |
|
|
newInstances(String key,
Injector injector,
Class<T> type)
Creates a new class instance using the key to lookup |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ConcurrentHashMap<String,Class> classMap
| Constructor Detail |
|---|
public DefaultFactoryFinder(ClassResolver classResolver,
String resourcePath)
| Method Detail |
|---|
public String getResourcePath()
FactoryFinder
getResourcePath in interface FactoryFinder
public Object newInstance(String key)
throws NoFactoryAvailableException
FactoryFinder
newInstance in interface FactoryFinderkey - is the key to add to the path to find a text file containing the factory name
NoFactoryAvailableException - is thrown if no factories exist for the given key
public <T> List<T> newInstances(String key,
Injector injector,
Class<T> type)
throws ClassNotFoundException,
IOException
FactoryFinder
newInstances in interface FactoryFinderkey - is the key to add to the path to find a text file containing the factory nameinjector - injector to usetype - expected type
ClassNotFoundException - is thrown if not found
IOException - is thrown if loading the class or META-INF file not found
public Class findClass(String key)
throws ClassNotFoundException,
IOException
FactoryFinder
findClass in interface FactoryFinderkey - is the key to add to the path to find a text file containing the factory name
ClassNotFoundException - is thrown if class not found
IOException - is thrown if loading the class or META-INF file not found
public Class findClass(String key,
String propertyPrefix)
throws ClassNotFoundException,
IOException
FactoryFinder
findClass in interface FactoryFinderkey - is the key to add to the path to find a text file containing the factory namepropertyPrefix - prefix on key
ClassNotFoundException - is thrown if not found
IOException - is thrown if loading the class or META-INF file not found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||