Package org.jboss.metadata.javaee.spec

Examples of org.jboss.metadata.javaee.spec.LifecycleCallbacksMetaData


                    interceptorModuleClassDescription.setAroundInvokeMethod(methodIdentifier);
                }
            }

            // post-construct(s) of the interceptor configured (if any) in the deployment descriptor
            LifecycleCallbacksMetaData postConstructs = interceptor.getPostConstructs();
            if (postConstructs != null) {
                for (LifecycleCallbackMetaData postConstruct : postConstructs) {
                    String methodName = postConstruct.getMethodName();
                    MethodIdentifier methodIdentifier = MethodIdentifier.getIdentifier(Void.TYPE, methodName, new Class<?>[]{InvocationContext.class});
                    // add it to the interceptor description
                    interceptorModuleClassDescription.setPostConstructMethod(methodIdentifier);
                }
            }

            // pre-destroy(s) of the interceptor configured (if any) in the deployment descriptor
            LifecycleCallbacksMetaData preDestroys = interceptor.getPreDestroys();
            if (preDestroys != null) {
                for (LifecycleCallbackMetaData preDestroy : preDestroys) {
                    String methodName = preDestroy.getMethodName();
                    MethodIdentifier methodIdentifier = MethodIdentifier.getIdentifier(Void.TYPE, methodName, new Class<?>[]{InvocationContext.class});
                    // add it to the interceptor description
View Full Code Here


/*  969 */     return this.poolConfig;
/*      */   }
/*      */
/*      */   @XmlTransient
/*      */   public LifecycleCallbacksMetaData getPostConstructs() {
/*  975 */     LifecycleCallbacksMetaData lcs = null;
/*  976 */     if (this.jndiEnvironmentRefsGroup != null)
/*  977 */       lcs = this.jndiEnvironmentRefsGroup.getPostConstructs();
/*  978 */     return lcs;
/*      */   }
View Full Code Here

/*  978 */     return lcs;
/*      */   }
/*      */
/*      */   @XmlTransient
/*      */   public LifecycleCallbacksMetaData getPreDestroys() {
/*  984 */     LifecycleCallbacksMetaData lcs = null;
/*  985 */     if (this.jndiEnvironmentRefsGroup != null)
/*  986 */       lcs = this.jndiEnvironmentRefsGroup.getPreDestroys();
/*  987 */     return lcs;
/*      */   }
View Full Code Here

/* 57 */     PostActivate annotation = (PostActivate)this.finder.getAnnotation(element, PostActivate.class);
/* 58 */     if (annotation == null) {
/* 59 */       return;
/*    */     }
/* 61 */     LifecycleCallbackMetaData callback = super.create(element);
/* 62 */     LifecycleCallbacksMetaData preDestroys = metaData.getPostActivates();
/* 63 */     if (preDestroys == null)
/*    */     {
/* 65 */       preDestroys = new LifecycleCallbacksMetaData();
/* 66 */       metaData.setPostActivates(preDestroys);
/*    */     }
/* 68 */     preDestroys.add(callback);
/*    */   }
View Full Code Here

/* 571 */     if ((override != null) && (override.aroundInvokes != null))
/* 572 */       this.aroundInvokes.addAll(override.aroundInvokes);
/* 573 */     if ((original != null) && (original.aroundInvokes != null))
/* 574 */       this.aroundInvokes.addAll(original.aroundInvokes);
/* 575 */     if (this.postActivates == null)
/* 576 */       this.postActivates = new LifecycleCallbacksMetaData();
/* 577 */     if ((override != null) && (override.postActivates != null))
/* 578 */       this.postActivates.addAll(override.postActivates);
/* 579 */     if ((original != null) && (original.postActivates != null))
/* 580 */       this.postActivates.addAll(original.postActivates);
/* 581 */     if (this.prePassivates == null)
/* 582 */       this.prePassivates = new LifecycleCallbacksMetaData();
/* 583 */     if ((override != null) && (override.prePassivates != null))
/* 584 */       this.prePassivates.addAll(override.prePassivates);
/* 585 */     if ((original != null) && (original.prePassivates != null))
/* 586 */       this.prePassivates.addAll(original.prePassivates);
/* 587 */     if (this.securityRoleRefs == null)
View Full Code Here

/* 57 */     PrePassivate annotation = (PrePassivate)this.finder.getAnnotation(element, PrePassivate.class);
/* 58 */     if (annotation == null) {
/* 59 */       return;
/*    */     }
/* 61 */     LifecycleCallbackMetaData callback = super.create(element);
/* 62 */     LifecycleCallbacksMetaData preDestroys = metaData.getPrePassivates();
/* 63 */     if (preDestroys == null)
/*    */     {
/* 65 */       preDestroys = new LifecycleCallbacksMetaData();
/* 66 */       metaData.setPrePassivates(preDestroys);
/*    */     }
/* 68 */     preDestroys.add(callback);
/*    */   }
View Full Code Here

/* 55 */     PostConstruct annotation = (PostConstruct)this.finder.getAnnotation(element, PostConstruct.class);
/* 56 */     if (annotation == null) {
/* 57 */       return;
/*    */     }
/* 59 */     LifecycleCallbackMetaData callback = super.create(element);
/* 60 */     LifecycleCallbacksMetaData postConstructs = metaData.getPostConstructs();
/* 61 */     if (postConstructs == null)
/*    */     {
/* 63 */       postConstructs = new LifecycleCallbacksMetaData();
/* 64 */       metaData.setPostConstructs(postConstructs);
/*    */     }
/* 66 */     postConstructs.add(callback);
/*    */   }
View Full Code Here

/*  73 */     ResourceEnvironmentReferencesMetaData resEnvRefs = null;
/*  74 */     ResourceEnvironmentReferencesMetaData jbossResEnvRefs = null;
/*  75 */     MessageDestinationReferencesMetaData messageDestinationRefs = null;
/*  76 */     MessageDestinationReferencesMetaData jbossMessageDestinationRefs = null;
/*  77 */     PersistenceUnitReferencesMetaData persistenceUnitRefs = null;
/*  78 */     LifecycleCallbacksMetaData postConstructs = null;
/*  79 */     LifecycleCallbacksMetaData preDestroys = null;
/*     */
/*  81 */     if (environmentRefsGroup != null)
/*     */     {
/*  83 */       envEntries = environmentRefsGroup.getEnvironmentEntries();
/*  84 */       ejbRefs = environmentRefsGroup.getEjbReferences();
View Full Code Here

/*     */   private void processPostConstructs()
/*     */     throws ClassNotFoundException, SecurityException, NoSuchMethodException
/*     */   {
/* 370 */     processPostConstructs(this.mainClass);
/*     */
/* 372 */     LifecycleCallbacksMetaData callbacks = this.xml.getPostConstructs();
/* 373 */     if (callbacks != null)
/*     */     {
/* 375 */       for (LifecycleCallbackMetaData callback : callbacks)
/*     */       {
/* 377 */         String className = callback.getClassName();
View Full Code Here

/* 55 */     PreDestroy annotation = (PreDestroy)this.finder.getAnnotation(element, PreDestroy.class);
/* 56 */     if (annotation == null) {
/* 57 */       return;
/*    */     }
/* 59 */     LifecycleCallbackMetaData callback = super.create(element);
/* 60 */     LifecycleCallbacksMetaData preDestroys = metaData.getPreDestroys();
/* 61 */     if (preDestroys == null)
/*    */     {
/* 63 */       preDestroys = new LifecycleCallbacksMetaData();
/* 64 */       metaData.setPreDestroys(preDestroys);
/*    */     }
/* 66 */     preDestroys.add(callback);
/*    */   }
View Full Code Here

TOP

Related Classes of org.jboss.metadata.javaee.spec.LifecycleCallbacksMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.