public interface ScaffoldProvider
extends org.jboss.forge.addon.projects.ProjectFacet, org.jboss.forge.addon.ui.UIValidator
| Modifier and Type | Method and Description |
|---|---|
List<org.jboss.forge.addon.resource.Resource<?>> |
generateFrom(Iterable<org.jboss.forge.addon.resource.Resource<?>> resources,
ScaffoldContext scaffoldContext)
Generate a set of create, read, update, delete pages for the given collection of resources
Resource. |
String |
getDescription()
Return the description for this
ScaffoldProvider
Ex: JavaServer Faces |
String |
getName()
Return the name for this
ScaffoldProvider
Ex: faces |
Class<? extends org.jboss.forge.addon.ui.wizard.UIWizardStep> |
getSetupFlow()
Return the
UIWizardStep class that begins the scaffold setup of this type, if any. |
boolean |
needsOverwriteConfirmation(ScaffoldContext scaffoldContext)
Needs overwrite confirmation ?
|
List<org.jboss.forge.addon.resource.Resource<?>> |
setup(ScaffoldContext scaffoldContext)
Set up this scaffold provider, installing any necessary
Facet or Plugin implementations as
necessary. |
String getName()
ScaffoldProvider
Ex: facesString getDescription()
ScaffoldProvider
Ex: JavaServer FacesList<org.jboss.forge.addon.resource.Resource<?>> setup(ScaffoldContext scaffoldContext)
Facet or Plugin implementations as
necessary. Install the templates in the provider to the src/main/templates directory of the project.List<org.jboss.forge.addon.resource.Resource<?>> generateFrom(Iterable<org.jboss.forge.addon.resource.Resource<?>> resources, ScaffoldContext scaffoldContext)
Resource. Note
that any collection of Resource instances can be provided to the ScaffoldProvider. It is the
responsibility of the ScaffoldProvider to verify whether it can act on the provided resource.boolean needsOverwriteConfirmation(ScaffoldContext scaffoldContext)
scaffoldContext - Class<? extends org.jboss.forge.addon.ui.wizard.UIWizardStep> getSetupFlow()
UIWizardStep class that begins the scaffold setup of this type, if any.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.