public abstract class MActivator extends ClassLoader implements IBase
Abstract MActivator class.
| Modifier and Type | Field and Description |
|---|---|
protected InjectorList |
injector |
| Constructor and Description |
|---|
MActivator()
Constructor for MActivator.
|
MActivator(ClassLoader loader)
Constructor for MActivator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInjector(Injector injector)
addInjector.
|
<T> T |
createObject(Class<T> ifc,
String name)
createObject.
|
<T> T |
createObject(Class<T> ifc,
String name,
Class<?>[] classes,
Object[] objects)
createObject.
|
Object |
createObject(String name)
createObject.
|
Object |
createObject(String name,
Class<?>[] classes,
Object[] objects)
createObject.
|
void |
destroy()
destroy.
|
protected Class<?> |
findClass(String name) |
protected URL |
findResource(String name) |
Class<?> |
getClazz(String name)
getClazz.
|
InjectorList |
getInjector()
Getter for the field
injector. |
protected abstract Object |
getInstance(String name)
getInstance.
|
<T> T |
getObject(Class<T> ifc)
getObject.
|
<T> T |
getObject(Class<T> ifc,
String name)
getObject.
|
Object |
getObject(String name)
getObject.
|
InputStream |
getResourceStream(String name)
getResourceStream.
|
URL |
getURL(String path)
getURL.
|
boolean |
isDestroyed()
isDestroyed.
|
boolean |
isInstance(Class<?> ifc)
isInstance.
|
abstract boolean |
isInstance(String ifc)
isInstance.
|
protected abstract Object |
mapName(String name)
mapName.
|
void |
setInjector(InjectorList injector)
Setter for the field
injector. |
protected abstract void |
setInstance(String name,
Object obj)
setInstance.
|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignersprotected InjectorList injector
public MActivator()
Constructor for MActivator.
public MActivator(ClassLoader loader)
Constructor for MActivator.
loader - a ClassLoader object.public <T> T createObject(Class<T> ifc, String name, Class<?>[] classes, Object[] objects) throws Exception
createObject.
public Object createObject(String name, Class<?>[] classes, Object[] objects) throws Exception
createObject.
public InputStream getResourceStream(String name) throws Exception
getResourceStream.
name - a String object.InputStream object.Exception - if any.public InjectorList getInjector()
Getter for the field injector.
InjectorList object.public void setInjector(InjectorList injector)
Setter for the field injector.
injector - a InjectorList object.public void addInjector(Injector injector)
addInjector.
injector - a Injector object.public void destroy()
destroy.
public boolean isDestroyed()
isDestroyed.
public boolean isInstance(Class<?> ifc)
isInstance.
ifc - a Class object.public abstract boolean isInstance(String ifc)
isInstance.
ifc - a String object.protected Class<?> findClass(String name) throws ClassNotFoundException
findClass in class ClassLoaderClassNotFoundExceptionprotected URL findResource(String name)
findResource in class ClassLoaderCopyright © 2016. All Rights Reserved.