public interface ProjectMetadataProvider
extends org.springframework.roo.metadata.MetadataProvider
ProjectMetadata.| Modifier and Type | Method and Description |
|---|---|
void |
addBuildPlugin(Plugin plugin)
Attempts to add the specified build plugin.
|
void |
addBuildPlugins(Collection<? extends Plugin> plugins)
Attempts to add the specified plugins.
|
void |
addDependencies(Collection<? extends Dependency> dependencies)
Attempts to add the specified dependencies.
|
void |
addDependency(Dependency dependency)
Attempts to add the specified dependency.
|
void |
addFilter(Filter filter)
Attempts to add the specified filter.
|
void |
addPluginRepositories(Collection<? extends Repository> repositories)
Attempts to add the specified plugin repositories.
|
void |
addPluginRepository(Repository repository)
Attempts to add the specified plugin repository.
|
void |
addProperty(Property property)
Attempts to add the specified property.
|
void |
addRepositories(Collection<? extends Repository> repositories)
Attempts to add the specified repositories.
|
void |
addRepository(Repository repository)
Attempts to add the specified repository.
|
void |
addResource(Resource resource)
Attempts to add the specified resource.
|
void |
removeBuildPlugin(Plugin plugin)
Removes any plugins with the same groupId and artifactId as the given
plugin.
|
void |
removeBuildPlugins(Collection<? extends Plugin> plugins)
Removes any plugins with the same groupId and artifactId as any of the
given plugins.
|
void |
removeDependencies(Collection<? extends Dependency> dependencies)
Attempts to remove the specified dependencies.
|
void |
removeDependency(Dependency dependency)
Attempts to remove the specified dependency.
|
void |
removeFilter(Filter filter)
Attempts to remove the specified filter.
|
void |
removePluginRepository(Repository repository)
Attempts to remove the specified plugin repository.
|
void |
removeProperty(Property property)
Attempts to remove the specified property dependency.
|
void |
removeRepository(Repository repository)
Attempts to remove the specified repository.
|
void |
removeResource(Resource resource)
Attempts to remove the specified resource.
|
void |
updateDependencyScope(Dependency dependency,
DependencyScope dependencyScope)
Attempts to update the scope of the specified dependency.
|
void |
updateProjectType(ProjectType projectType)
Attempts to update the project packaging type as defined via
ProjectType. |
void addBuildPlugin(Plugin plugin)
ProjectMetadata#isBuildPluginRegistered(org.springframework.roo.project.Plugin)
, the method silently returns. Otherwise the plugin is added.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
plugin - the plugin to add (required)void addBuildPlugins(Collection<? extends Plugin> plugins)
ProjectMetadata#isAllPluginRegistered(Plugin), the
method silently returns. Otherwise each new dependency is added.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
plugins - the plugins to add (required)void addDependencies(Collection<? extends Dependency> dependencies)
ProjectMetadata#isAllDependencyRegistered(Dependency), the method
silently returns. Otherwise each new dependency is added.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
dependencies - the dependencies to add (required)void addDependency(Dependency dependency)
ProjectMetadata#isDependencyRegistered(org.springframework.roo.project.Dependency)
, the method silently returns. Otherwise the dependency is added.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
dependency - the dependency to add (required)void addFilter(Filter filter)
ProjectMetadata#isFilterRegistered(org.springframework.roo.project.Filter)
, the method silently returns. Otherwise the filter is added.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
filter - the filter to add (required)void addPluginRepositories(Collection<? extends Repository> repositories)
ProjectMetadata#isPluginRepositoryRegistered(Repository), the
method silently returns. Otherwise each new repository is added.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
repositories - a list of plugin repositories to add (required)void addPluginRepository(Repository repository)
ProjectMetadata#isPluginRepositoryRegistered(Repository), the
method silently returns. Otherwise the repository is added.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
repository - the plugin repository to add (required)void addProperty(Property property)
ProjectMetadata#isPropertyRegistered(org.springframework.roo.project.Property)
, the method silently returns. Otherwise the property is added.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
property - the property to add (required)void addRepositories(Collection<? extends Repository> repositories)
ProjectMetadata#isRepositoryRegistered(Repository), the method
silently returns. Otherwise each new repository is added.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
repositories - a list of repositories to add (required)void addRepository(Repository repository)
ProjectMetadata#isRepositoryRegistered(Repository), the method
silently returns. Otherwise the repository is added.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
repository - the repository to add (required)void addResource(Resource resource)
ProjectMetadata#isResourceRegistered(Resource), the
method silently returns. Otherwise the resource is added.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
resource - the resource to add (required)void removeBuildPlugin(Plugin plugin)
plugin - the plugin to remove (can be null)IllegalArgumentException - if this method is called before the
ProjectMetadata is available, or if the on-disk
representation cannot be modified for any reasonvoid removeBuildPlugins(Collection<? extends Plugin> plugins)
plugins - the plugins to remove; can be null, any
null elements will be quietly ignoredIllegalArgumentException - if this method is called before the
ProjectMetadata is available, or if the on-disk
representation cannot be modified for any reasonvoid removeDependencies(Collection<? extends Dependency> dependencies)
ProjectMetadata#isDependencyRegistered(Dependency), the method
silently returns. Otherwise each located dependency is removed.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
dependencies - the dependencies to remove (required)void removeDependency(Dependency dependency)
ProjectMetadata#isDependencyRegistered(Dependency), the method
silently returns. Otherwise the located dependency is removed.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
dependency - the dependency to remove (required)void removeFilter(Filter filter)
ProjectMetadata#isFilterRegistered(org.springframework.roo.project.Filter)
, the method silently returns. Otherwise the located filter is removed.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
filter - the filter to remove (required)void removePluginRepository(Repository repository)
ProjectMetadata#isPluginRepositoryRegistered(Repository), the
method silently returns. Otherwise the located plugin repository is
removed.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
repository - the plugin repository to remove (required)void removeProperty(Property property)
ProjectMetadata#isPropertyRegistered(Property), the method
silently returns. Otherwise the located dependency is removed.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
property - the property to remove (required)void removeRepository(Repository repository)
ProjectMetadata#isRepositoryRegistered(Repository), the method
silently returns. Otherwise the located repository is removed.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
repository - the repository to remove (required)void removeResource(Resource resource)
ProjectMetadata#isResourceRegistered(Resource), the
method silently returns. Otherwise the located resource is removed.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
resource - the resource to remove (required)void updateDependencyScope(Dependency dependency, DependencyScope dependencyScope)
ProjectMetadata#isDependencyRegistered(Dependency), the method
silently returns. Otherwise the located dependency is updated.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
dependency - the dependency to update (required)dependencyScope - the dependency scope. May be null, in which case
the void updateProjectType(ProjectType projectType)
ProjectType. If the project packaging is not defined it will
create a new definition.
An exception is thrown if this method is called before there is
ProjectMetadata available, or if the on-disk representation
cannot be modified for any reason.
projectType - the project type to update (required)Copyright © 2009–2017 Pivotal Software, Inc.. All rights reserved.