Package com.atlassian.plugin.main

Main interface to the plugins framework providing a facade to hide the unnecessary internals.

See: Description

Package com.atlassian.plugin.main Description

Main interface to the plugins framework providing a facade to hide the unnecessary internals.

To use the facade, construct a PluginsConfiguration instance using the PluginsConfigurationBuilder builder class. Then, pass that instance into the constructor for the AtlassianPlugins class, and call AtlassianPlugins.start(). For example:

 PluginsConfiguration config = new PluginsConfigurationBuilder()
    .setPluginDirectory(new File("/my/plugin/directory"))
    .setPackagesToInclude("org.apache.*", "com.atlassian.*", "org.dom4j*")
    .build();
 final AtlassianPlugins plugins = new AtlassianPlugins(config);
 plugins.start();
 

This code ensures only packages from Atlassian, Apache, and Dom4j are exposed to plugins. See the PluginsConfigurationBuilder for more options.

Since:
2.2.0

Copyright © 2014 Atlassian. All rights reserved.