|
Forge - Shell API 1.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Facet
Represents a standardized piece of a project on which certain Plugin types may rely for a set of
domain-specific operations. A Facet is an access point to common functionality, file manipulations,
descriptors that extend a Project instance. When implementing this interface, consider extending
BaseFacet for convenience.
Facets may be annotated with any of the following constraints in order to ensure proper dependencies are satisfied at
runtime: RequiresFacet, RequiresPackagingType
BaseFacet}| Method Summary | |
|---|---|
Project |
getProject()
Return the Project instance on which this Facet operates. |
boolean |
install()
Perform necessary setup for this Facet to be considered installed in the given Project. |
boolean |
isInstalled()
Return true if the Facet is available for the given Project, false if otherwise. |
void |
setProject(Project project)
Initialize this Facet for operation on the given Project. |
boolean |
uninstall()
Remove this Facet from its Project, and perform any necessary cleanup. |
| Method Detail |
|---|
Project getProject()
Project instance on which this Facet operates.
void setProject(Project project)
Facet for operation on the given Project. This method is responsible for ensuring
that the Facet instance is ready for use, and must be called before any other methods.
boolean install()
Facet to be considered installed in the given Project. This
method should NOT register the facet; facet registration is handled by the project if installation is successful.
boolean isInstalled()
Facet is available for the given Project, false if otherwise.
boolean uninstall()
Facet from its Project, and perform any necessary cleanup.
|
Forge - Shell API 1.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||