Skip to content

How to use Java Plugin Manager

Usage

Add dependency plugin-manager and repo bms-artifactory-rel on your pom.xml (you don't need to add it anymore if you inherited java plugin parent).

  <dependencies>
    <dependency>
      <groupId>com.webex.mct</groupId>
      <artifactId>plugin-manager</artifactId>
      <version>${pluginManager.version}</version>
    </dependency>
  </dependencies>
  <repositories>
    <repository>
      <id>bms-artifactory-rel</id>
      <name>bms-artifactory-releases</name>
      <url>https://engci-maven.cisco.com/artifactory/cscmse-release</url>
    </repository>
  </repositories>

Then extend AbstractWMSPlugin and override method execute(), here you can provide your input arguments Parameter and Configuration as generic type.

// define "Parameter" and "Config" as generic type
public class App extends AbstractWMSPlugin<Parameter, Config> {
    // instances of "Parameter" and "Config" will be passed to this callback method
    @Override
    int execute(Parameter parameter, Config config) {
    }
}

see more about Input Arguments of Java Plugin.

Parameter auto parsing

see Auto Parameter Parsing

Plugin logger

see How to Use PluginLogger

Plugin Util