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, putAttributegetChangeNotes, getDescription, getEnvVersion, getID, getMainPackage, getMd5Key, getName, getPrice, getRequiredJarTime, getVendor, getVersion, isActive, isHidden, needCompat, supportCurrentFRVersioncontain, contain, contain, isMainClassgetLeftDays, isAvailable, isFree, isLicDamaged, isOnTrial, isRegisterFailed, registerMessagegetClassPathsclassForNamegetBundle, getResource, getResourceAsStream, getResourcesdelayExecuteRecoverable, executeRecoverablenewCachedThreadPool, newCachedThreadPool, newFixedThreadPool, newFixedThreadPool, newScheduledThreadPool, newScheduledThreadPool, newServerSocket, newServerSocket, newServerSocket, newServerSocket, newSingleThreadExecutor, newSingleThreadExecutor, newSingleThreadScheduledExecutor, newSingleThreadScheduledExecutor, newSocket, newSocket, newSocket, newSocket, newSocket, newTimer, newTimer, newTimer, newTimer, unconfigurableExecutorService, unconfigurableScheduledExecutorServicevoid initLicense()
void run()
throws PluginException
PluginExceptionvoid stop()
throws PluginException
PluginExceptionvoid forbid()
throws PluginException
PluginExceptionvoid enable()
throws PluginException
PluginExceptionboolean isResourceAvailable()
boolean isLoadBy(java.lang.ClassLoader classLoader)
void setLicense(java.io.InputStream licIn)
throws PluginException
PluginExceptionjava.lang.Class loadClass(java.lang.String className)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionvoid functionRecorderDetected()
com.fr.third.javassist.ClassPool getClassPool()
java.lang.Class<?> forceClassForName(java.lang.String className)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionjava.lang.ClassLoader getClassLoader()
void freeze()
void unfreeze()