Class AbstractRootProject
java.lang.Object
org.jdrupes.builder.core.AbstractProvider
org.jdrupes.builder.core.AbstractProject
org.jdrupes.builder.core.AbstractRootProject
- All Implemented Interfaces:
AutoCloseable, Project, ResourceProvider, RootProject
- Direct Known Subclasses:
BootstrapRoot
The Class AbstractRootProject.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThe Class CommandBuilder.static final recordThe Record CommandData.Nested classes/interfaces inherited from interface Project
Project.Properties -
Constructor Summary
ConstructorsConstructorDescriptionAbstractRootProject(NamedParameter<?>... params) Initializes a new abstract root project. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the project.commandAlias(String name) Define an alias for requesting one or more specific resources.lookupCommand(String name) Lookup command.Returns the instance of the given project class.Returns the root project.Methods inherited from class AbstractProject
dependency, directory, directory, doProvide, equals, generator, get, hashCode, jdbldDirectory, name, name, parent, parentProject, projects, providers, providers, set, toStringMethods inherited from class AbstractProvider
context, of, rename, vavrStreamMethods inherited from interface Project
buildDirectory, dependency, dependency, directory, generator, generator, get, parentProject, providers, providers, providers, readString, relativize, setMethods inherited from interface RootProject
prepareProject, projects
-
Constructor Details
-
AbstractRootProject
Initializes a new abstract root project.- Parameters:
params- the params
-
-
Method Details
-
close
Description copied from interface:RootProjectClose the project. The re-declaration of this method removes theIOException, which is never thrown.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceRootProject
-
rootProject
Description copied from interface:ProjectReturns the root project.- Specified by:
rootProjectin interfaceProject- Overrides:
rootProjectin classAbstractProject- Returns:
- the project
-
project
Description copied from interface:ProjectReturns the instance of the given project class. Projects are created lazily by the builder and must be accessed via this method.- Specified by:
projectin interfaceProject- Overrides:
projectin classAbstractProject- Parameters:
prjCls- the requested project's type- Returns:
- the project
-
commandAlias
Description copied from interface:RootProjectDefine an alias for requesting one or more specific resources.- Specified by:
commandAliasin interfaceRootProject- Parameters:
name- the name- Returns:
- the root project
-
lookupCommand
Lookup command.- Parameters:
name- the name- Returns:
- the command data
-