Package org.glassfish.pfl.basic.facet
Class FacetAccessorDelegateImpl
java.lang.Object
org.glassfish.pfl.basic.facet.FacetAccessorDelegateImpl
- All Implemented Interfaces:
FacetAccessor
Implementation of FacetAccessor that delegates to another FacetAccessor,
typically a FacetAccessorImpl. The purpose of this call is to provide
a convenient template of methods that may be copied into a class that
implements FacetAccessor. Typically such a class implements that
FacetAccessor interface and defines a data member initialized as:
FacetAccessor facetAccessorDelegate = new FacetAccessorImpl( this ) ;
and then simply copies the other methods directly.
This is all a workaround for the fact that Java does not
support dynamic inheritance, or more than one superclass.
Because this is a template, I have commented out all of the code.
It is not used at runtime or compiletime.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.glassfish.pfl.basic.facet.FacetAccessor
addFacet, facet, facets, get, invoke, removeFacet, set
-
Constructor Details
-
FacetAccessorDelegateImpl
FacetAccessorDelegateImpl()
-