Plugin.java :  » Workflow-Engines » osbl-1_0 » org » osbl » plugin » Java Open Source

Java Open Source » Workflow Engines » osbl 1_0 
osbl 1_0 » org » osbl » plugin » Plugin.java
package org.osbl.plugin;

import java.util.List;
import java.util.Arrays;

public class Plugin
{
    String name;
    Plugin parent;
    List<ExtensionPoint> extensionPoints;

    public Plugin(String name, Plugin parent, List<ExtensionPoint> extensionPoints) {
        this.name = name;
        this.parent = parent;
        this.extensionPoints = extensionPoints;
    }

    public Plugin(String name, Plugin parent, ExtensionPoint... extensionPoints) {
        this.name = name;
        this.parent = parent;
        this.extensionPoints = Arrays.asList(extensionPoints);
    }

    public String getName() {
        return name;
    }

    public Plugin getParent() {
        return parent;
    }

    public List<ExtensionPoint> getExtensionPoints() {
        return extensionPoints;
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.