Plugins - Plugin Generator

RHQ Plugin Generator

This module is a simple generator, that asks some questions and builds a plugin skeleton from it.

Where to get it from

Source

The generator lives in the RHQ source tree under modules/helpers/pluginGen

Binary

Binary versions are attached to this page :

How to use it

To start the generator just type

java -jar rhq-pluginGen-1.2.2-jar-with-dependencies.jar

After the generator has run (and you have finished the plugin), you need to remember to add the new plugin to the parent pom as well. Otherwise it will not be picked up on full builds.

Sample run

User input is in bold, comments are in italics

$ java -jar target/rhq-pluginGen-1.2.2-jar-with-dependencies.jar
Please specify the plugin root category PLATFORM(P), SERVER(S), SERVICE(I), s
Please specify its PackagePrefix: org.rhq.plugins
Please specify its FileSystemRoot: /jon/jonHEAD/rhq/modules/plugins
Please specify its ComponentClass: FooComponent
Please specify its DiscoveryClass: FooDiscovery
Please specify if it should support Events (y/N): y
Please specify its ParentType:
Please specify if it should support Monitoring (y/N): y
Please specify if it should support Operations (y/N): y
Please specify if it should support Singleton (y/N): y
Please specify if it should support ResourceConfiguration (y/N): y
Please specify if it should support CreateChildren (y/N): y
Please specify if it should support UsesExternalJarsInPlugin (y/N): y
Please specify if it should support DeleteChildren (y/N): y
Please specify if it should support ManualAddOfChildren (y/N): y
Please specify its Name: foo Name of the plugin and also of this outer server
Please specify its Description: test

Do you want to add a child to foo? (y/N) y Should an embedded child be used?
Please specify the plugin root category SERVER(S), SERVICE(I), i
Please specify its ComponentClass: ChildComponent
Please specify its DiscoveryClass: ChildDiscovery
Please specify if it should support Events (y/N): y
Please specify if it should support Monitoring (y/N): y
Please specify if it should support Operations (y/N): y
Please specify if it should support Singleton (y/N): y
Please specify if it should support ResourceConfiguration (y/N): y
Please specify if it should support CreateChildren (y/N):
Please specify if it should support DeleteChildren (y/N):
Please specify if it should support ManualAddOfChildren (y/N):
Please specify its Name: child
Please specify its Description: child service

Do you want to add a child to foo? (y/N) n
$

Misc

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.