Skip to content

Instantly share code, notes, and snippets.

@gschueler
Last active August 29, 2015 13:57
Show Gist options
  • Save gschueler/9373940 to your computer and use it in GitHub Desktop.
Save gschueler/9373940 to your computer and use it in GitHub Desktop.

Java plugins

Descriptions define the plugin type and name, and optional configuration properties

All Java plugin types use Descriptions.

Some Java plugin types have configuration properties.

Some plugin types can use @PluginProperty annotations to define properties, others must define them using a Description object.

Has no configuration properties:

  • Resource formats - specifies supported mimetypes/file extensions via the java interface

Has configuration properties, but does not support @PluginProperty annotations:

  • ResourceModelSourceFactory (properties passed in via interface method)
  • NodeExecutor (properties must be manually read from project/framework props)
  • FileCopier (properties must be manually read from project/framework props)

Has configuration properties, and supports @PluginProperty annotation. Annotated fields will have config values set at runtime:

  • Workflow steps
  • Notification
  • Logging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment