public interface Facet<FACETEDTYPE extends Faceted<?>>
Facet
is an access point to common functionality, file manipulations, descriptors that extend a
Faceted
instance. When implementing this interface, consider extending AbstractFacet
for convenience.AbstractFacet}
Modifier and Type | Method and Description |
---|---|
FACETEDTYPE |
getFaceted()
|
boolean |
install()
|
boolean |
isInstalled()
|
boolean |
uninstall()
|
FACETEDTYPE getFaceted()
Faceted
instance on which this Facet
operates. Each Facet
belongs to a
Faceted
object (an object that has facets). Once this Facet
has been installed, the
Faceted
instance cannot be changed.
Typically, the Faceted
instance is provided at Facet
creation time, when the facet is constructed
via the FacetFactory
.
boolean install()
Facet
to be considered installed in the given Faceted
instance.
This method should NOT register the facet; facet registration is handled by the Faceted
instance if
installation is successful.boolean isInstalled()
boolean uninstall()
Copyright © 2014 JBoss by Red Hat. All rights reserved.