public interface Profile
A Profile defines an active code generation and command execution policy. For example the "web" profile allows the execution of code gen and build commands that relate to web applications
| Type Params | Return Type | Name and description |
|---|---|---|
|
public java.util.Set<java.lang.String> |
getBinaryExtensions()
|
|
public java.util.List<java.lang.String> |
getBuildMergeProfileNames()
|
|
public java.util.List<java.lang.String> |
getBuildPlugins()
|
|
public java.util.List<java.lang.String> |
getBuildRepositories()
|
|
public Command |
getCommand(ProjectContext context, java.lang.String name)Obtain a command by name |
|
public java.lang.Iterable<Command> |
getCommands(ProjectContext context)The profile Command instances |
|
public java.lang.Iterable<jline.console.completer.Completer> |
getCompleters(ProjectContext context)The profile completers |
|
public NavigableMap |
getConfiguration()
|
|
public java.lang.Iterable<Feature> |
getDefaultFeatures()
|
|
public java.util.List<org.eclipse.aether.graph.Dependency> |
getDependencies()
|
|
public java.lang.String |
getDescription()
|
|
public java.util.Set<java.lang.String> |
getExecutablePatterns()
|
|
public java.lang.Iterable<Profile> |
getExtends()The other Profile instances that this Profile extends |
|
public java.lang.Iterable<Feature> |
getFeatures()
|
|
public java.lang.String |
getInstructions()
|
|
public java.lang.String |
getName()
|
|
public java.lang.String |
getParentSkeletonDir()
|
|
public java.io.File |
getParentSkeletonDir(java.io.File parent)
|
|
public Resource |
getProfileDir()
|
|
public java.util.List<java.lang.String> |
getRepositories()
|
|
public java.lang.Iterable<Feature> |
getRequiredFeatures()
|
|
public java.util.List<java.lang.String> |
getSkeletonExcludes()
|
|
public Resource |
getTemplate(java.lang.String path)Obtain a template by path |
|
public java.lang.String |
getVersion()
|
|
public boolean |
handleCommand(ExecutionContext context)Obtains a Command |
|
public boolean |
hasCommand(ProjectContext context, java.lang.String name)Whether a command executes for the given context and name |
Obtain a command by name
name - Obtain a command by nameThe profile Command instances
context - The ProjectContext instanceThe profile completers
context - The ProjectContext instance
The other Profile instances that this Profile extends
Obtain a template by path
path - The path to template
Obtains a Command
Whether a command executes for the given context and name
context - The ProjectContextname - The command name