|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.gmbal.generic.FacetAccessorImpl
public class FacetAccessorImpl
| Constructor Summary | |
|---|---|
FacetAccessorImpl(Object delegate)
|
|
| Method Summary | ||
|---|---|---|
|
addFacet(T obj)
Add a facet to the object. |
|
|
facet(Class<T> cls,
boolean debug)
Access the Facet of Class T from the object. |
|
Collection<Object> |
facets()
Return a list of all facets on this object. |
|
Object |
get(Field field,
boolean debug)
Fetch the value of the field from whichever facet contains the field. |
|
Object |
invoke(Method method,
boolean debug,
Object... args)
Invoke method on the appropriate facet of this object, that is, on the facet corresponding to method.getDeclaringClass. |
|
void |
removeFacet(Class<?> cls)
Remove the facet (if any) of the given type. |
|
void |
set(Field field,
Object value,
boolean debug)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FacetAccessorImpl(Object delegate)
| Method Detail |
|---|
public <T> T facet(Class<T> cls,
boolean debug)
FacetAccessor
facet in interface FacetAccessorT - The Type (as a Class) of the Facet.cls - The class of the facet.
public Collection<Object> facets()
FacetAccessor
facets in interface FacetAccessorpublic <T> void addFacet(T obj)
FacetAccessor
addFacet in interface FacetAccessor
public Object invoke(Method method,
boolean debug,
Object... args)
FacetAccessor
invoke in interface FacetAccessormethod - The method to invoke.args - Arguments to the method.
public Object get(Field field,
boolean debug)
FacetAccessor
get in interface FacetAccessorfield - The field to accessdebug - True if debugging trace output is desired
public void set(Field field,
Object value,
boolean debug)
set in interface FacetAccessorpublic void removeFacet(Class<?> cls)
FacetAccessor
removeFacet in interface FacetAccessorcls - The class of the facet to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||