Package collide.plugin

Source Code of collide.plugin.PluginAggregator

package collide.plugin;

import xapi.annotation.inject.SingletonDefault;
import collide.gwtc.ui.GwtClientPlugin;

import com.google.collide.client.plugin.ClientPlugin;
import com.google.collide.client.plugin.ClientPluginService;
import com.google.collide.plugin.client.terminal.TerminalClientPlugin;

@SingletonDefault(implFor=ClientPluginService.class)
public class PluginAggregator extends ClientPluginService{

  private final ClientPlugin<?>[] plugins;
  public PluginAggregator(){
    plugins = initPlugins();
  }

  protected ClientPlugin<?>[] initPlugins() {
    return new ClientPlugin[] {
      new TerminalClientPlugin()
      ,new GwtClientPlugin()
    };
  }


  @Override
  public ClientPlugin<?>[] plugins() {
    return plugins;
  }

  @Override
  public void cleanup() {
    super.cleanup();
  }
}
TOP

Related Classes of collide.plugin.PluginAggregator

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.