|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jtools.activate.CentralLoader
public class CentralLoader
Provides managed classloading.
Field Summary | |
---|---|
static int |
CENTRAL
Specifies the ClassLoader set as CentralLoader. |
static int |
CONTEXT
Specifies the ClassLoader of the overgiven context. |
static int |
CONTEXTCL
Specifies the ClassLoader as the overgiven context. |
static int |
CURRENT
Specifies the ClassLoader of class CentralLoader. |
static int[] |
DEFAULT_STRATEGY
Default strategy. |
static int |
SYSTEM
Specifies the SystemClassLoader. |
static int |
THREAD
Specifies the ThreadContextClassLoader. |
Constructor Summary | |
---|---|
CentralLoader()
|
|
CentralLoader(int[] strategy)
|
Method Summary | ||
---|---|---|
static ClassLoader |
getClassLoader()
gets the central classloader. |
|
static ClassLoader |
getClassLoader(Object context)
gets the central classloader. |
|
static URL |
getResource(String name,
Object context)
gets a resource from the central classloader. |
|
static InputStream |
getResourceAsStream(String name,
Object context)
gets a resource from the central classloader. |
|
static Enumeration |
getResources(String name,
Object context)
get resources from the central classloader. |
|
protected static CentralLoader |
getSingleton()
|
|
int[] |
getStrategy()
|
|
static
|
loadClass(String name,
Object context)
loads a class from the central classloader. |
|
protected ClassLoader |
onGetClassLoader()
|
|
protected ClassLoader |
onGetClassLoader(int type,
Object context)
|
|
protected ClassLoader |
onGetClassLoader(Object context)
|
|
protected URL |
onGetResource(String name,
Object context)
|
|
protected InputStream |
onGetResourceAsStream(String name,
Object context)
|
|
protected Enumeration |
onGetResources(String name,
Object context)
|
|
protected
|
onLoadClass(String name,
Object context)
|
|
protected ClassLoader |
onSetClassLoader(ClassLoader classloader)
|
|
static ClassLoader |
setClassLoader(ClassLoader classloader)
sets a central classloader. |
|
protected static CentralLoader |
setSingleton(CentralLoader classloader)
|
|
void |
setStrategy(int[] strategy)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CENTRAL
public static final int THREAD
public static final int CONTEXT
public static final int CURRENT
public static final int SYSTEM
public static final int CONTEXTCL
public static final int[] DEFAULT_STRATEGY
Constructor Detail |
---|
public CentralLoader()
public CentralLoader(int[] strategy)
Method Detail |
---|
public static ClassLoader getClassLoader()
public static ClassLoader getClassLoader(Object context)
public static URL getResource(String name, Object context)
public static InputStream getResourceAsStream(String name, Object context)
public static Enumeration getResources(String name, Object context) throws IOException
IOException
protected static CentralLoader getSingleton()
public static <E> Class<E> loadClass(String name, Object context) throws ClassNotFoundException
ClassNotFoundException
public static ClassLoader setClassLoader(ClassLoader classloader)
protected static CentralLoader setSingleton(CentralLoader classloader)
public int[] getStrategy()
public void setStrategy(int[] strategy)
protected ClassLoader onGetClassLoader()
protected ClassLoader onGetClassLoader(int type, Object context)
protected ClassLoader onGetClassLoader(Object context)
protected URL onGetResource(String name, Object context)
protected InputStream onGetResourceAsStream(String name, Object context)
protected Enumeration onGetResources(String name, Object context) throws IOException
IOException
protected <E> Class<E> onLoadClass(String name, Object context) throws ClassNotFoundException
ClassNotFoundException
protected ClassLoader onSetClassLoader(ClassLoader classloader)
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |