public class AsmInstantiatorFactory
extends cn.featherfly.common.lang.ReloadableClassloader
implements cn.featherfly.common.bean.InstantiatorFactory
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_NAME_SUFFIX
The Constant CLASS_NAME_SUFFIX.
|
| Constructor and Description |
|---|
AsmInstantiatorFactory(java.lang.ClassLoader classLoader)
Instantiates a new instantiator factor.
|
| Modifier and Type | Method and Description |
|---|---|
<T> cn.featherfly.common.bean.Instantiator<T> |
create(java.lang.Class<T> type,
java.lang.ClassLoader classLoader) |
static org.objectweb.asm.tree.MethodNode |
createMethodGetType(java.lang.Class<?> type)
Creates a new AsmInstantiator object.
|
static org.objectweb.asm.tree.MethodNode |
createMethodInstantiate(java.lang.String typeInternalName)
Creates a new AsmInstantiator object.
|
protected void |
doClassLoaderReload() |
public static final java.lang.String CLASS_NAME_SUFFIX
public AsmInstantiatorFactory(java.lang.ClassLoader classLoader)
classLoader - the class loaderpublic <T> cn.featherfly.common.bean.Instantiator<T> create(java.lang.Class<T> type,
java.lang.ClassLoader classLoader)
create in interface cn.featherfly.common.bean.InstantiatorFactorypublic static org.objectweb.asm.tree.MethodNode createMethodInstantiate(java.lang.String typeInternalName)
throws java.lang.NoSuchMethodException,
java.lang.SecurityException
typeInternalName - the type internal namejava.lang.NoSuchMethodException - the no such method exceptionjava.lang.SecurityException - the security exceptionpublic static org.objectweb.asm.tree.MethodNode createMethodGetType(java.lang.Class<?> type)
throws java.lang.NoSuchMethodException,
java.lang.SecurityException
type - the typejava.lang.NoSuchMethodException - the no such method exceptionjava.lang.SecurityException - the security exceptionprotected void doClassLoaderReload()
doClassLoaderReload in class cn.featherfly.common.lang.ReloadableClassloader