20172018201920202021202220232024202520262027
if (ann == AroundInvoke.class) { return new AroundInvokeImpl(); } else if (ann == PostConstruct.class) { return new PostConstructImpl(); } else if (ann == PostActivate.class) { return new PostActivateImpl(); } else if (ann == PrePassivate.class) {
952953954955956957958959960961962
{ annotation = new InitImpl(); } else { annotation = new PostConstructImpl(); } annotationClass = annotation.annotationType(); method.setMethodName("ejbCreate"); addAnnotations(annotationClass, annotation, container, method); }
20162017201820192020202120222023202420252026
20102011201220132014201520162017201820192020
940941942943944945946947948949950
19791980198119821983198419851986198719881989
953954955956957958959960961962963
20142015201620172018201920202021202220232024
360361362363364365366367368369
// EJB 3.0 5.6.3: the class or any super-class may implement the ejbCreate method Method method = getMethod(container.getBeanClass(), "ejbCreate"); if(method != null) { addAnnotation(new PostConstructImpl(), container, method); } return container; }