|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.roo.project.AbstractProjectOperations
public abstract class AbstractProjectOperations
Provides common project operations. Should be subclassed by a project-specific operations subclass.
Field Summary | |
---|---|
protected org.springframework.roo.metadata.MetadataService |
metadataService
|
protected ProjectMetadataProvider |
projectMetadataProvider
|
Constructor Summary | |
---|---|
AbstractProjectOperations()
|
Method Summary | |
---|---|
void |
addBuildPlugin(Plugin plugin)
Allows addition of a build plugin to the POM. |
void |
addDependency(Dependency dependency)
Allows addition of a JAR dependency to the POM. |
void |
addDependency(org.springframework.roo.model.JavaPackage groupId,
org.springframework.roo.model.JavaSymbolName artifactId,
String version)
Allows addition of a JAR dependency to the POM. |
void |
addDependencyListener(DependencyListener listener)
Register a listener to track changes in build dependencies |
void |
addPluginListener(PluginListener listener)
Register a listener to track changes in build plugins |
void |
addPluginRepository(Repository repository)
Allows addition of a plugin repository to the POM. |
void |
addPluginRepositoryListener(RepositoryListener listener)
Register a listener to track changes in plugin repositories |
void |
addProperty(Property property)
Allows addition of a property to the POM. |
void |
addPropertyListener(PropertyListener listener)
Register a listener to track changes in pom properties |
void |
addRepository(Repository repository)
Allows addition of a repository to the POM. |
void |
addRepositoryListener(RepositoryListener listener)
Register a listener to track changes in repositories |
void |
buildPluginUpdate(Plugin plugin)
Verifies if the specified build plugin is present. |
void |
dependencyUpdate(Dependency dependency)
Verifies if the specified dependency is present. |
boolean |
isDependencyModificationAllowed()
|
boolean |
isPerformCommandAllowed()
|
void |
removeBuildPlugin(Plugin plugin)
Allows remove of an existing build plugin from the POM. |
void |
removeDependency(Dependency dependency)
Allows removal of a JAR dependency to the POM. |
void |
removeDependency(org.springframework.roo.model.JavaPackage groupId,
org.springframework.roo.model.JavaSymbolName artifactId,
String version)
Allows remove of an existing JAR dependency from the POM. |
void |
removeDependencyListener(DependencyListener listener)
Remove a dependency listener from change tracking |
void |
removePluginListener(PluginListener listener)
Remove a build plugin listener from change tracking |
void |
removePluginRepository(Repository repository)
Allows remove of an existing plugin repository from the POM. |
void |
removePluginRepositoryListener(RepositoryListener listener)
Remove a plugin repository listener from change tracking |
void |
removeProperty(Property property)
Allows remove of an existing property from the POM. |
void |
removePropertyListener(PropertyListener listener)
Remove a property listener from change tracking |
void |
removeRepository(Repository repository)
Allows remove of an existing repository from the POM. |
void |
removeRepositoryListener(RepositoryListener listener)
Remove a repository listener from change tracking |
void |
updateProjectType(ProjectType projectType)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Reference protected org.springframework.roo.metadata.MetadataService metadataService
@Reference protected ProjectMetadataProvider projectMetadataProvider
Constructor Detail |
---|
public AbstractProjectOperations()
Method Detail |
---|
public final boolean isDependencyModificationAllowed()
isDependencyModificationAllowed
in interface ProjectOperations
public final boolean isPerformCommandAllowed()
isPerformCommandAllowed
in interface ProjectOperations
public void addDependencyListener(DependencyListener listener)
ProjectOperations
addDependencyListener
in interface ProjectOperations
public void removeDependencyListener(DependencyListener listener)
ProjectOperations
removeDependencyListener
in interface ProjectOperations
public void addRepositoryListener(RepositoryListener listener)
ProjectOperations
addRepositoryListener
in interface ProjectOperations
public void removeRepositoryListener(RepositoryListener listener)
ProjectOperations
removeRepositoryListener
in interface ProjectOperations
public void addPluginRepositoryListener(RepositoryListener listener)
ProjectOperations
addPluginRepositoryListener
in interface ProjectOperations
public void removePluginRepositoryListener(RepositoryListener listener)
ProjectOperations
removePluginRepositoryListener
in interface ProjectOperations
public void addPluginListener(PluginListener listener)
ProjectOperations
addPluginListener
in interface ProjectOperations
public void removePluginListener(PluginListener listener)
ProjectOperations
removePluginListener
in interface ProjectOperations
public void addPropertyListener(PropertyListener listener)
ProjectOperations
addPropertyListener
in interface ProjectOperations
public void removePropertyListener(PropertyListener listener)
ProjectOperations
removePropertyListener
in interface ProjectOperations
public void updateProjectType(ProjectType projectType)
updateProjectType
in interface ProjectOperations
public final void addDependency(Dependency dependency)
ProjectOperations
Provides a convenient way for third parties to instruct end users how to use the CLI to add support for their projects without requiring the user to manually edit a pom.xml or write an add-on.
addDependency
in interface ProjectOperations
dependency
- to add (required)public final void addDependency(org.springframework.roo.model.JavaPackage groupId, org.springframework.roo.model.JavaSymbolName artifactId, String version)
ProjectOperations
Provides a convenient way for third parties to instruct end users how to use the CLI to add support for their projects without requiring the user to manually edit a pom.xml or write an add-on.
addDependency
in interface ProjectOperations
groupId
- to add (required)artifactId
- to add (required)version
- to add (required)public final void removeDependency(Dependency dependency)
ProjectOperations
Provides a convenient way for third parties to instruct end users how to use the CLI to remove an unwanted dependency from their projects without requiring the user to manually edit a pom.xml or write an add-on.
removeDependency
in interface ProjectOperations
dependency
- to remove (required)public final void removeDependency(org.springframework.roo.model.JavaPackage groupId, org.springframework.roo.model.JavaSymbolName artifactId, String version)
ProjectOperations
Provides a convenient way for third parties to instruct end users how to use the CLI to remove an unwanted dependency from their projects without requiring the user to manually edit a pom.xml or write an add-on.
removeDependency
in interface ProjectOperations
groupId
- to remove (required)artifactId
- to remove (required)version
- to remove (required)public void dependencyUpdate(Dependency dependency)
ProjectOperations
ProjectMetadata.getDependenciesExcludingVersion(Dependency)
.
Always adds the presented dependency.
dependencyUpdate
in interface ProjectOperations
dependency
- to add (required)public final void addRepository(Repository repository)
ProjectOperations
Provides a convenient way for third parties to instruct end users how to use the CLI to add support for their projects without requiring the user to manually edit a pom.xml or write an add-on.
addRepository
in interface ProjectOperations
repository
- to add (required)public final void removeRepository(Repository repository)
ProjectOperations
Provides a convenient way for third parties to instruct end users how to use the CLI to remove an unwanted repository from their projects without requiring the user to manually edit a pom.xml or write an add-on.
removeRepository
in interface ProjectOperations
repository
- to remove (required)public final void addPluginRepository(Repository repository)
ProjectOperations
Provides a convenient way for third parties to instruct end users how to use the CLI to add support for their projects without requiring the user to manually edit a pom.xml or write an add-on.
addPluginRepository
in interface ProjectOperations
repository
- to add (required)public final void removePluginRepository(Repository repository)
ProjectOperations
Provides a convenient way for third parties to instruct end users how to use the CLI to remove an unwanted plugin repository from their projects without requiring the user to manually edit a pom.xml or write an add-on.
removePluginRepository
in interface ProjectOperations
public final void addBuildPlugin(Plugin plugin)
ProjectOperations
Provides a convenient way for third parties to instruct end users how to use the CLI to add a new build capability to their projects without requiring the user to manually edit a pom.xml or write an add-on.
addBuildPlugin
in interface ProjectOperations
plugin
- to add (required)public final void removeBuildPlugin(Plugin plugin)
ProjectOperations
Provides a convenient way for third parties to instruct end users how to use the CLI to remove an unwanted build plugin from their projects without requiring the user to manually edit a pom.xml or write an add-on.
removeBuildPlugin
in interface ProjectOperations
plugin
- to add (required)public void buildPluginUpdate(Plugin plugin)
ProjectOperations
ProjectMetadata.getBuildPluginsExcludingVersion(Plugin)
.
Always adds the presented plugin.
buildPluginUpdate
in interface ProjectOperations
public final void addProperty(Property property)
ProjectOperations
Provides a convenient way for third parties to instruct end users how to use the CLI to add support for their projects without requiring the user to manually edit a pom.xml or write an add-on.
addProperty
in interface ProjectOperations
property
- to add (required)public final void removeProperty(Property property)
ProjectOperations
Provides a convenient way for third parties to instruct end users how to use the CLI to remove an unwanted property from their projects without requiring the user to manually edit a pom.xml or write an add-on.
removeProperty
in interface ProjectOperations
property
- to remove (required)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |