|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.adapter.FrameworkAdapterFactory
Factory class for Framework Adapters. An application can register a framework adapter direct by calling the registerAdapter()method or let the factory search for a matching framework adapter.
Field Summary | |
private static FrameworkAdapter |
adapter
The cached framework adapter instance |
private static org.apache.commons.logging.Log |
log
Commons Logging instance. |
Constructor Summary | |
private |
FrameworkAdapterFactory()
Constructor |
Method Summary | |
private static FrameworkAdapter |
createAdapter()
Creates a new framework adapter for the current application. |
static FrameworkAdapter |
getAdapter()
Retrieves an adapter for the current host framework. |
protected static java.lang.ClassLoader |
getContextClassLoader()
Return the thread context class loader if available. |
private static java.lang.Class |
loadClass(java.lang.String name)
MUST KEEP THIS METHOD PRIVATE Exposing this method establishes a security violation. |
static void |
registerAdapter(FrameworkAdapter newAdapter)
Registers the Framework Adapter that should be used for this Application |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static org.apache.commons.logging.Log log
private static FrameworkAdapter adapter
Constructor Detail |
private FrameworkAdapterFactory()
Method Detail |
public static FrameworkAdapter getAdapter()
public static void registerAdapter(FrameworkAdapter newAdapter)
newAdapter
- Framework Adapterprivate static FrameworkAdapter createAdapter()
protected static java.lang.ClassLoader getContextClassLoader() throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
- error
java.lang.reflect.InvocationTargetException
- errorprivate static java.lang.Class loadClass(java.lang.String name) throws java.lang.ClassNotFoundException
Exposing this method establishes a security violation. This method uses
AccessController.doPrivileged()
.
name
- the class name
java.lang.ClassNotFoundException
- error
java.lang.IllegalAccessException
- error
java.lang.reflect.InvocationTargetException
- error
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |