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(org.jboss.forge.addon.projects.Project project,
ScaffoldGenerationContext scaffoldContext)
Generate a set of create, read, update, delete pages for the given collection of
Resources present in the
ScaffoldGenerationContext. |
AccessStrategy |
getAccessStrategy() |
String |
getDescription()
Return the description for this
ScaffoldProvider
Ex: JavaServer Faces |
List<Class<? extends org.jboss.forge.addon.ui.UICommand>> |
getGenerationFlow()
Return the
List of UICommands classes that begins the scaffold generation of this type, if any. |
String |
getName()
Return the name for this
ScaffoldProvider
Ex: faces |
List<Class<? extends org.jboss.forge.addon.ui.UICommand>> |
getSetupFlow()
Return the
List of UICommands classes that begins the scaffold setup of this type, if any. |
List<org.jboss.forge.addon.resource.Resource<?>> |
setup(org.jboss.forge.addon.projects.Project project,
ScaffoldSetupContext 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(org.jboss.forge.addon.projects.Project project, ScaffoldSetupContext 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(org.jboss.forge.addon.projects.Project project, ScaffoldGenerationContext scaffoldContext)
Resources present in the
ScaffoldGenerationContext. 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.List<Class<? extends org.jboss.forge.addon.ui.UICommand>> getSetupFlow()
List of UICommands classes that begins the scaffold setup of this type, if any.List<Class<? extends org.jboss.forge.addon.ui.UICommand>> getGenerationFlow()
List of UICommands classes that begins the scaffold generation of this type, if any.AccessStrategy getAccessStrategy()
Copyright © 2013 JBoss by Red Hat. All rights reserved.