org.zeroturnaround.javarebel
Interface Plugin


public interface Plugin

Represents a JavaRebel plugin that can be used by a third-party to configure or integrate with JavaRebel. Will be called before the first class is loaded in the host classloader. There are two ways to register a JavaRebel plugin. One is by creating a JAR file with a custom manifest entry MANIFEST_ATTRIBUTE_PLUGIN and putting it in the classpath. The other is by setting a system property SYSPROP_PLUGIN to the plugin class.

Author:
Jevgeni Kabanov (ekabanov@zeroturnaround.com)
See Also:
Integration, Configuration, Reloader, Logger

Field Summary
static java.lang.String MANIFEST_ATTRIBUTE_PLUGIN
          This JAR MANIFEST.MF attribute should point to a class name that implements this interface.
static java.lang.String SYSPROP_PLUGIN
          This system property should point to a class name that implements this interface.
 
Method Summary
 void preinit()
          Called before the first class in the host classloader is loaded.
 

Field Detail

SYSPROP_PLUGIN

static final java.lang.String SYSPROP_PLUGIN
This system property should point to a class name that implements this interface. It can be used by applications to enable additional JavaRebel configuration.
For example -Drebel.plugin=com.mycompany.mypackage.MyJavaRebelPlugin.

See Also:
Constant Field Values

MANIFEST_ATTRIBUTE_PLUGIN

static final java.lang.String MANIFEST_ATTRIBUTE_PLUGIN
This JAR MANIFEST.MF attribute should point to a class name that implements this interface. It can be used by third-party libraries to enable additional JavaRebel configuration or integration and also to create standalone JavaRebel plugin JARs.

See Also:
Constant Field Values
Method Detail

preinit

void preinit()
Called before the first class in the host classloader is loaded.