1 17 18 package org.apache.jasper.runtime; 19 20 import java.lang.reflect.InvocationTargetException ; 21 22 import javax.naming.NamingException ; 23 24 import org.apache.AnnotationProcessor; 25 26 27 34 public class AnnotationHelper { 35 36 37 41 public static void postConstruct(AnnotationProcessor processor, Object instance) 42 throws IllegalAccessException , InvocationTargetException , NamingException { 43 if (processor != null) { 44 processor.processAnnotations(instance); 45 processor.postConstruct(instance); 46 } 47 } 48 49 50 53 public static void preDestroy(AnnotationProcessor processor, Object instance) 54 throws IllegalAccessException , InvocationTargetException { 55 if (processor != null) { 56 processor.preDestroy(instance); 57 } 58 } 59 60 61 } 62 | Popular Tags |