Forge - Parent 1.4.2-SNAPSHOT

org.jboss.forge.project.facets.events
Class InstallFacets

java.lang.Object
  extended by org.jboss.forge.project.facets.events.InstallFacets

public class InstallFacets
extends Object

Event to instruct Forge to install the given Facet into the current Project

Author:
Lincoln Baxter, III

Constructor Summary
InstallFacets(boolean prompt, Class<? extends Facet>... facetTypes)
          Install the given facets but first prompt for confirmation.
InstallFacets(boolean prompt, Class<? extends Facet> facetType)
          Install the given facet but first prompt for confirmation.
InstallFacets(Class<? extends Facet>... facetTypes)
          Install the given facets without prompting for confirmation
InstallFacets(Class<? extends Facet> facetType)
          Install the given facet without prompting for confirmation
 
Method Summary
 List<Class<? extends Facet>> getFacetTypes()
          Get the facet types to be installed
 boolean promptRequested()
          Return whether or not the caller has requested to prompt the user for confirmation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstallFacets

public InstallFacets(Class<? extends Facet> facetType)
Install the given facet without prompting for confirmation


InstallFacets

public InstallFacets(boolean prompt,
                     Class<? extends Facet> facetType)
Install the given facet but first prompt for confirmation. If the user aborts, a FacetActionAborted will be thrown from the statement where this event was fired.


InstallFacets

public InstallFacets(Class<? extends Facet>... facetTypes)
Install the given facets without prompting for confirmation


InstallFacets

public InstallFacets(boolean prompt,
                     Class<? extends Facet>... facetTypes)
Install the given facets but first prompt for confirmation. If the user aborts, a FacetActionAborted will be thrown.

Method Detail

getFacetTypes

public List<Class<? extends Facet>> getFacetTypes()
Get the facet types to be installed


promptRequested

public boolean promptRequested()
Return whether or not the caller has requested to prompt the user for confirmation


Forge - Parent 1.4.2-SNAPSHOT

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.