public interface Plugin extends PriorityOrdered
DEFAULT_PRECEDENCE, HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| 限定符和类型 | 方法和说明 |
|---|---|
String |
getArtifactId()
get Plugin ArtifactId
|
URL[] |
getClassPath()
get Plugin Class Path
|
Set<String> |
getExportClasses()
get plugin Export Classes
|
Set<String> |
getExportPackageNodes()
get plugin export package which is exactly matched
|
Set<String> |
getExportPackages()
get Plugin Export Packages Config
|
Set<String> |
getExportPackageStems()
get plugin export package which is matched by prefix
|
Set<String> |
getExportResources()
get Plugin Export Resources
|
Set<String> |
getExportResourceStems()
get plugin export resources matched by prefix
|
String |
getGroupId()
get Plugin GroupId
|
Set<String> |
getImportClasses()
get Plugin Import Classes
|
Set<String> |
getImportPackageNodes()
get plugin import package which is exactly matched
|
Set<String> |
getImportPackages()
get Plugin Import Packages Config
|
Set<String> |
getImportPackageStems()
get plugin import package which is matched by prefix
|
Set<String> |
getImportResources()
get Plugin Import Resources
|
Set<String> |
getImportResourceStems()
get Plugin Import Resources matched by prefix
|
String |
getPluginActivator()
get Plugin Activator
|
ClassLoader |
getPluginClassLoader()
get Plugin ClassLoader
|
PluginContext |
getPluginContext()
get Plugin Runtime Context
|
String |
getPluginName()
get Plugin Name
|
URL |
getPluginURL()
get Plugin Archive URL
|
int |
getPriority()
get Plugin Priority, mainly used in following 3 scenarios:
1.
|
String |
getVersion()
get Plugin Version
|
void |
start()
start Plugin
|
void |
stop()
stop Plugin
|
String getPluginName()
String getGroupId()
String getArtifactId()
String getVersion()
int getPriority()
getPriority 在接口中 PriorityOrderedString getPluginActivator()
URL[] getClassPath()
ClassLoader getPluginClassLoader()
PluginContext getPluginContext()
Set<String> getExportPackages()
Set<String> getExportPackageNodes()
Set<String> getExportPackageStems()
Set<String> getImportPackages()
Set<String> getImportPackageNodes()
Set<String> getImportPackageStems()
Set<String> getImportResources()
Set<String> getImportResourceStems()
Set<String> getExportResources()
Set<String> getExportResourceStems()
URL getPluginURL()
void start()
throws ArkRuntimeException
void stop() throws ArkRuntimeException
Copyright © 2019. All rights reserved.