Package org.jboss.metadata.javaee.spec

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


/*  67 */     ResourceEnvironmentReferencesMetaData resEnvRefs = null;
/*  68 */     ResourceEnvironmentReferencesMetaData jbossResEnvRefs = null;
/*  69 */     MessageDestinationReferencesMetaData messageDestinationRefs = null;
/*  70 */     MessageDestinationReferencesMetaData jbossMessageDestinationRefs = null;
/*  71 */     PersistenceUnitReferencesMetaData persistenceUnitRefs = null;
/*  72 */     LifecycleCallbacksMetaData postConstructs = null;
/*  73 */     LifecycleCallbacksMetaData preDestroys = null;
/*     */
/*  75 */     if (environmentRefsGroup != null)
/*     */     {
/*  77 */       envEntries = environmentRefsGroup.getEnvironmentEntries();
/*  78 */       ejbRefs = environmentRefsGroup.getEjbReferences();
View Full Code Here


                    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

    *
    */
   private void processPostConstructs()
      throws ClassNotFoundException, SecurityException, NoSuchMethodException
   {
      LifecycleCallbacksMetaData callbacks = xml.getPostConstructs();
      if(callbacks == null || callbacks.isEmpty())
         return;

      List<Method> methods = callbacks.getOrderedCallbacks(mainClass);
      postConstructs.addAll(methods);
   }
View Full Code Here

        final DeploymentReflectionIndex reflectionIndex = deploymentUnit.getAttachment(Attachments.REFLECTION_INDEX);

        SessionBeanMetaData data = description.getDescriptorData();
        if (data != null) {
            LifecycleCallbacksMetaData callbacks = data.getPrePassivates();
            if (callbacks != null) {
                for (LifecycleCallbackMetaData callback: callbacks) {
                    description.addPrePassivateMethod(MethodResolutionUtils.resolveMethod(callback.getMethodName(), null, componentClass, reflectionIndex));
                }
            }
View Full Code Here

                    env.setPersistenceUnitRefs(puReferences);
                }
                puReferences.add(PersistenceUnitReferenceMetaDataParser.parse(reader));
                break;
            case POST_CONSTRUCT:
                LifecycleCallbacksMetaData postConstructs = env.getPostConstructs();
                if (postConstructs == null) {
                    postConstructs = new LifecycleCallbacksMetaData();
                    env.setPostConstructs(postConstructs);
                }
                postConstructs.add(LifecycleCallbackMetaDataParser.parse(reader));
                break;
            case PRE_DESTROY:
                LifecycleCallbacksMetaData preDestroys = env.getPreDestroys();
                if (preDestroys == null) {
                    preDestroys = new LifecycleCallbacksMetaData();
                    env.setPreDestroys(preDestroys);
                }
                preDestroys.add(LifecycleCallbackMetaDataParser.parse(reader));
                break;
            case DATA_SOURCE:
                DataSourcesMetaData dataSources = env.getDataSources();
                if (dataSources == null) {
                    dataSources = new DataSourcesMetaData();
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.