com.sun.jersey.core.spi.component
Class AnnotatedContext

java.lang.Object
  extended by com.sun.jersey.core.spi.component.AnnotatedContext
All Implemented Interfaces:
ComponentContext

public class AnnotatedContext
extends Object
implements ComponentContext

A component context for an accessible object and/or an array of annotations.

Author:
Paul.Sandoz@Oracle.Com

Constructor Summary
AnnotatedContext()
           
AnnotatedContext(AccessibleObject ao)
           
AnnotatedContext(AccessibleObject ao, Annotation[] annotations)
           
AnnotatedContext(Annotation[] annotations)
           
 
Method Summary
 AccessibleObject getAccesibleObject()
          Get the accessible object.
 Annotation[] getAnnotations()
          Get the array of annotations.
 void setAccessibleObject(AccessibleObject ao)
           
 void setAnnotations(Annotation[] annotations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatedContext

public AnnotatedContext()

AnnotatedContext

public AnnotatedContext(Annotation[] annotations)

AnnotatedContext

public AnnotatedContext(AccessibleObject ao)

AnnotatedContext

public AnnotatedContext(AccessibleObject ao,
                        Annotation[] annotations)
Method Detail

setAnnotations

public void setAnnotations(Annotation[] annotations)

setAccessibleObject

public void setAccessibleObject(AccessibleObject ao)

getAccesibleObject

public AccessibleObject getAccesibleObject()
Description copied from interface: ComponentContext
Get the accessible object.

Specified by:
getAccesibleObject in interface ComponentContext
Returns:
the accessible object, may be null.

getAnnotations

public Annotation[] getAnnotations()
Description copied from interface: ComponentContext
Get the array of annotations.

Specified by:
getAnnotations in interface ComponentContext
Returns:
the array of annotations.


Copyright © 2013 Oracle Corporation. All Rights Reserved.