public interface Plugin extends PriorityOrdered
DEFAULT_PRECEDENCE, HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Modifier and Type | Method and Description |
|---|---|
String |
getArtifactId()
get Plugin ArtifactId
|
URL[] |
getClassPath()
get Plugin Class Path
|
Set<String> |
getExportClasses()
get plugin Export Classes
|
String |
getExportMode()
get Plugin Export Mode
default exportMode = classLoader, means export class to load in this plugin classLoader
exportMode = override, means export class to file only, and usually will be reload in another classLoader
|
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> |
getExportPrefixResourceStems()
get plugin export resources matched by prefix
|
Set<String> |
getExportResources()
get Plugin Export Resources
|
Set<String> |
getExportSuffixResourceStems()
get plugin export resources matched by suffix
|
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> |
getImportPrefixResourceStems()
get Plugin Import Resources matched by prefix
|
Set<String> |
getImportResources()
get Plugin Import Resources
|
Set<String> |
getImportSuffixResourceStems()
get Plugin Import Resources matched by suffix
|
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 in interface PriorityOrderedString getPluginActivator()
URL[] getClassPath()
ClassLoader getPluginClassLoader()
PluginContext getPluginContext()
String getExportMode()
Set<String> getExportPackages()
Set<String> getExportPackageNodes()
Set<String> getExportPackageStems()
Set<String> getExportClasses()
Set<String> getImportPackages()
Set<String> getImportPackageNodes()
Set<String> getImportPackageStems()
Set<String> getImportClasses()
Set<String> getImportResources()
Set<String> getImportPrefixResourceStems()
Set<String> getImportSuffixResourceStems()
Set<String> getExportResources()
Set<String> getExportPrefixResourceStems()
Set<String> getExportSuffixResourceStems()
URL getPluginURL()
void start()
throws ArkRuntimeException
ArkRuntimeExceptionvoid stop() throws ArkRuntimeException
ArkRuntimeExceptionCopyright © 2024. All rights reserved.