public class PluginRepository
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
PluginRepository(Configuration conf)
Pluging repository constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
finalize() |
static PluginRepository |
get(Configuration conf) |
java.lang.Class |
getCachedClass(PluginDescriptor pDescriptor,
java.lang.String className) |
ExtensionPoint |
getExtensionPoint(java.lang.String pXpId)
Returns a extension point indentified by a extension point id.
|
PluginDescriptor |
getPluginDescriptor(java.lang.String pPluginId)
Returns the descriptor of one plugin identified by a plugin id.
|
PluginDescriptor[] |
getPluginDescriptors()
Returns all registed plugin descriptors.
|
Plugin |
getPluginInstance(PluginDescriptor pDescriptor)
Returns a instance of a plugin.
|
static void |
main(java.lang.String[] args)
Loads all necessary dependencies for a selected plugin, and then runs one
of the classes' main() method.
|
public PluginRepository(Configuration conf) throws java.lang.RuntimeException
conf - Configurationjava.lang.RuntimeExceptionpublic static PluginRepository get(Configuration conf)
public PluginDescriptor[] getPluginDescriptors()
public PluginDescriptor getPluginDescriptor(java.lang.String pPluginId)
pPluginId - public ExtensionPoint getExtensionPoint(java.lang.String pXpId)
pXpId - public Plugin getPluginInstance(PluginDescriptor pDescriptor) throws PluginRuntimeException
pDescriptor - PluginRuntimeExceptionpublic void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic java.lang.Class getCachedClass(PluginDescriptor pDescriptor, java.lang.String className) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
args - plugin ID (needs to be activated in the configuration), and the
class name. The rest of arguments is passed to the main method of
the selected class.java.lang.ExceptionCopyright © 2019 The Apache Software Foundation