This Addon requires the following installation steps.
To use this addon, you must add it as a dependency in the pom.xml of your forge-addon
classified artifact:
<dependency>
<groupId>org.jboss.forge.addon</groupId>
<artifactId>scaffold</artifactId>
<classifier>forge-addon</classifier>
<version>${version}</version>
</dependency>
- Extensibility
-
The scaffold addon introduces commands to generate UIs from JPA entities (
scaffold-generate-from-entities
andscaffold-setup
) and extends these commands by usingScaffoldProvider
implementations. You may implement your ownScaffoldProvider
to generate artifacts from the selected JPA entities.public class MyScaffoldProvider implements ScaffoldProvider { @Override public String getName() { return "my-architecture"; } @Override public String getDescription() { return "My excellent Home-grown architecture"; } @Override public List<Resource<?>> setup(ScaffoldSetupContext setupContext) { //TODO: Change pom.xml to add the necessary libs and create the index.html page } @Override public List<Resource<?>> generateFrom(ScaffoldGenerationContext generationContext) { // Generate DAOs, BOs, Managers, etc. } ... }