/* 936 */ Class[] interfaces = this.ejbClass.getInterfaces();
/* 937 */ for (Class beanInterface : interfaces)
/* */ {
/* 939 */ if (!beanInterface.equals(SessionBean.class))
/* */ continue;
/* 941 */ MethodMetaData method = new MethodMetaData();
/* 942 */ method.setEjbName(container.getEjbName());
/* */
/* 948 */ if (hasPublicMethod(this.ejbClass, "ejbCreate"))
/* */ {
/* */ Annotation annotation;
/* */ Annotation annotation;
/* 950 */ if (isStateful)
/* */ {
/* 952 */ annotation = new InitImpl();
/* */ }
/* */ else
/* */ {
/* 956 */ annotation = new PostConstructImpl();
/* */ }
/* 958 */ Class annotationClass = annotation.annotationType();
/* 959 */ method.setMethodName("ejbCreate");
/* 960 */ addAnnotations(annotationClass, annotation, container, method);
/* */ }
/* */
/* 963 */ Annotation annotation = new PostActivateImpl();
/* 964 */ Class annotationClass = PostActivate.class;
/* 965 */ method.setMethodName("ejbActivate");
/* 966 */ addAnnotations(annotationClass, annotation, container, method);
/* */
/* 968 */ annotation = new PrePassivateImpl();
/* 969 */ annotationClass = PrePassivate.class;
/* 970 */ method.setMethodName("ejbPassivate");
/* 971 */ addAnnotations(annotationClass, annotation, container, method);
/* */
/* 973 */ annotation = new PreDestroyImpl();
/* 974 */ annotationClass = PreDestroy.class;
/* 975 */ method.setMethodName("ejbRemove");
/* 976 */ addAnnotations(annotationClass, annotation, container, method);
/* */
/* 978 */ annotation = new ResourceImpl();
/* 979 */ annotationClass = Resource.class;
/* 980 */ method.setMethodName("setSessionContext");
/* */
/* 982 */ addAnnotations(annotationClass, annotation, container, method);
/* */ }
/* */ }