public interface Plugin extends PluginContext
限定符和类型 | 方法和说明 |
---|---|
void |
enable() |
void |
forbid() |
java.lang.Class<?> |
forceClassForName(java.lang.String className)
强制生成对象,如果当前没有ClassLoader则生成一个临时的,用于引擎内部使用
|
void |
freeze()
冻结,即禁止状态的改变,多用于有依赖关系的插件之间使用
|
void |
functionRecorderDetected()
检测到functionRecorder,表示可以运行
|
java.lang.ClassLoader |
getClassLoader()
获取ClassLoader,用于依赖插件的父子关系
|
com.fr.third.javassist.ClassPool |
getClassPool()
获取javassist的classPool
|
void |
initLicense()
生成Plugin对象之后调用,用于第一次尝试读取license
|
boolean |
isLoadBy(java.lang.ClassLoader classLoader)
判断是否是被这个classLoader加载的
|
boolean |
isResourceAvailable()
资源文件是否可以被插件资源池获取
|
java.lang.Class |
loadClass(java.lang.String className)
加载Class不初始化
|
void |
run() |
void |
setLicense(java.io.InputStream licIn)
设置lic
|
void |
stop() |
void |
unfreeze()
解冻
|
getAttribute, getErrorCode, getMarker, getRuntime, getXml, isError, isRunning, putAttribute
getChangeNotes, getDescription, getEnvVersion, getID, getMainPackage, getMd5Key, getName, getPrice, getRequiredJarTime, getVendor, getVersion, isActive, isHidden, needCompat, supportCurrentFRVersion
contain, contain, contain, isMainClass
getLeftDays, isAvailable, isFree, isLicDamaged, isOnTrial, isRegisterFailed, registerMessage
getClassPaths
classForName
getBundle, getResource, getResourceAsStream, getResources
delayExecuteRecoverable, executeRecoverable
newCachedThreadPool, newCachedThreadPool, newFixedThreadPool, newFixedThreadPool, newScheduledThreadPool, newScheduledThreadPool, newServerSocket, newServerSocket, newServerSocket, newServerSocket, newSingleThreadExecutor, newSingleThreadExecutor, newSingleThreadScheduledExecutor, newSingleThreadScheduledExecutor, newSocket, newSocket, newSocket, newSocket, newSocket, newTimer, newTimer, newTimer, newTimer, unconfigurableExecutorService, unconfigurableScheduledExecutorService
void initLicense()
void run() throws PluginException
PluginException
void stop() throws PluginException
PluginException
void forbid() throws PluginException
PluginException
void enable() throws PluginException
PluginException
boolean isResourceAvailable()
boolean isLoadBy(java.lang.ClassLoader classLoader)
void setLicense(java.io.InputStream licIn) throws PluginException
PluginException
java.lang.Class loadClass(java.lang.String className) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
void functionRecorderDetected()
com.fr.third.javassist.ClassPool getClassPool()
java.lang.Class<?> forceClassForName(java.lang.String className) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
java.lang.ClassLoader getClassLoader()
void freeze()
void unfreeze()