|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.roo.metadata.AbstractMetadataItem
org.springframework.roo.project.ProjectMetadata
public class ProjectMetadata
Represents a project.
Each ROO instance has a single project active at any time. Different project add-ons are expected
to subclass this ProjectMetadata
and implement the abstract methods.
The ProjectMetadata
offers convenience methods for acquiring the project name,
top level project package name, registered dependencies and path name resolution services.
Concrete subclasses should register the correct dependencies the particular project build
system requires, plus read those files whenever they change. Subclasses should also provide a valid
PathResolver
implementation that understands the target project layout.
Field Summary |
---|
Fields inherited from class org.springframework.roo.metadata.AbstractMetadataItem |
---|
valid |
Constructor Summary | |
---|---|
ProjectMetadata(org.springframework.roo.model.JavaPackage topLevelPackage,
String projectName,
Set<Dependency> dependencies,
Set<Plugin> buildPlugins,
Set<Repository> repositories,
Set<Repository> pluginRepositories,
Set<Property> pomProperties,
PathResolver pathResolver)
|
Method Summary | |
---|---|
Set<Plugin> |
getBuildPlugin()
|
Set<Plugin> |
getBuildPluginsExcludingVersion(Plugin plugin)
Locates any build plugins which match the presented plugin, excluding the version number. |
Set<Dependency> |
getDependencies()
|
Set<Dependency> |
getDependenciesExcludingVersion(Dependency dependency)
Locates any dependencies which match the presented dependency, excluding the version number. |
PathResolver |
getPathResolver()
|
static String |
getProjectIdentifier()
|
String |
getProjectName()
|
Set<Property> |
getPropertiesExcludingValue(Property property)
Locates any properties which match the presented property, excluding the value. |
org.springframework.roo.model.JavaPackage |
getTopLevelPackage()
|
boolean |
isBuildPluginRegistered(Plugin plugin)
Convenience method for determining whether a particular build plugin is registered. |
boolean |
isDependencyRegistered(Dependency dependency)
Convenience method for determining whether a particular dependency is registered. |
boolean |
isPluginRepositoryRegistered(Repository repository)
Convenience method for determining whether a particular plugin repository is registered. |
boolean |
isPropertyRegistered(Property property)
Convenience method for determining whether a particular pom property is registered. |
boolean |
isRepositoryRegistered(Repository repository)
Convenience method for determining whether a particular repository is registered. |
String |
toString()
|
Methods inherited from class org.springframework.roo.metadata.AbstractMetadataItem |
---|
getId, isValid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProjectMetadata(org.springframework.roo.model.JavaPackage topLevelPackage, String projectName, Set<Dependency> dependencies, Set<Plugin> buildPlugins, Set<Repository> repositories, Set<Repository> pluginRepositories, Set<Property> pomProperties, PathResolver pathResolver)
Method Detail |
---|
public static final String getProjectIdentifier()
public boolean isDependencyRegistered(Dependency dependency)
dependency
- to check (required)
public boolean isRepositoryRegistered(Repository repository)
repository
- to check (required)
public boolean isPluginRepositoryRegistered(Repository repository)
plugin
- repository to check (required)
public boolean isBuildPluginRegistered(Plugin plugin)
plugin
- to check (required)
public boolean isPropertyRegistered(Property property)
property
- to check (required)
public org.springframework.roo.model.JavaPackage getTopLevelPackage()
public String getProjectName()
public PathResolver getPathResolver()
public Set<Dependency> getDependencies()
public Set<Dependency> getDependenciesExcludingVersion(Dependency dependency)
dependency
- to locate (required; note the version number is ignored in comparisons)
Set
)public Set<Plugin> getBuildPlugin()
public Set<Plugin> getBuildPluginsExcludingVersion(Plugin plugin)
plugin
- to locate (required; note the version number is ignored in comparisons)
Set
)public Set<Property> getPropertiesExcludingValue(Property property)
property
- to locate (required; note the value is ignored in comparisons)
Set
)public final String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |