Package org.jboss.forge.furnace.addons

Source Code of org.jboss.forge.furnace.addons.StopAllAddonsVisitor

/*
* Copyright 2013 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jboss.forge.furnace.addons;

import org.jboss.forge.furnace.addons.Addon;
import org.jboss.forge.furnace.impl.AddonImpl;
import org.jboss.forge.furnace.util.Callables;
import org.jboss.forge.furnace.util.Visitor;

/**
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
*
*/
public class StopAllAddonsVisitor implements Visitor<Addon>
{
   private AddonTree tree;

   public StopAllAddonsVisitor(AddonTree tree)
   {
      this.tree = tree;
   }

   @Override
   public void visit(Addon instance)
   {
      if (instance instanceof AddonImpl)
      {
         AddonImpl addon = (AddonImpl) instance;
         Callables.call(new StopAddonCallable(tree, addon));
      }
   }

}
TOP

Related Classes of org.jboss.forge.furnace.addons.StopAllAddonsVisitor

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.