15.7. Plugin Archives

You can collect more plugins in one archive. The makes it possible to register them with only one plugin directive. To create an archive you implement a class of the IArchive interface:

public interface IArchive {
   public List<Object> getPluginObjects();

An implementation could look like this:

public class MyArchive implements IArchive{
   public List<Object> getPluginObjects() {
      List<Object> list = new ArrayList<Object>();
      list.add(new MyMacro());
      list.add(new MyModifyer());
      return list;

The following plugin directive will then register both MyMacro and MyModifyer.

.plugin "test.plugins.archives.MyArchive"