org.apache.catalina.util

Class DefaultAnnotationProcessor

public class DefaultAnnotationProcessor extends Object implements AnnotationProcessor

Verify the annotation and Process it.

Version: $Revision: 777554 $, $Date: 2009-05-22 16:54:32 +0200 (Fri, 22 May 2009) $

Author: Fabien Carrion Remy Maucherat

Field Summary
protected Contextcontext
Constructor Summary
DefaultAnnotationProcessor(Context context)
Method Summary
protected static voidlookupFieldResource(Context context, Object instance, Field field, String name, Class<?> clazz)
Inject resources in specified field.
protected static voidlookupMethodResource(Context context, Object instance, Method method, String name, Class<?> clazz)
Inject resources in specified method.
voidpostConstruct(Object instance)
Call postConstruct method on the specified instance.
voidpreDestroy(Object instance)
Call preDestroy method on the specified instance.
voidprocessAnnotations(Object instance)
Inject resources in specified instance.

Field Detail

context

protected Context context

Constructor Detail

DefaultAnnotationProcessor

public DefaultAnnotationProcessor(Context context)

Method Detail

lookupFieldResource

protected static void lookupFieldResource(Context context, Object instance, Field field, String name, Class<?> clazz)
Inject resources in specified field.

lookupMethodResource

protected static void lookupMethodResource(Context context, Object instance, Method method, String name, Class<?> clazz)
Inject resources in specified method.

postConstruct

public void postConstruct(Object instance)
Call postConstruct method on the specified instance.

preDestroy

public void preDestroy(Object instance)
Call preDestroy method on the specified instance.

processAnnotations

public void processAnnotations(Object instance)
Inject resources in specified instance.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.