Examples of RemoveMethodMetaData


Examples of org.jboss.metadata.ejb.spec.RemoveMethodMetaData

   {
      Remove remove = finder.getAnnotation(method, Remove.class);
      if(remove == null)
         return null;
     
      RemoveMethodMetaData metaData = new RemoveMethodMetaData();
      NamedMethodMetaData beanMethod = new NamedMethodMetaData();
      beanMethod.setMethodName(method.getName());
      metaData.setBeanMethod(beanMethod);
      metaData.setRetainIfException(remove.retainIfException());

      MethodParametersMetaData methodParams = ProcessorUtils.getMethodParameters(method);
      beanMethod.setMethodParams(methodParams);
     
      return metaData;
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.RemoveMethodMetaData

      return metaData;
   }
  
   public void process(SessionBeanMetaData bean, Method method)
   {
      RemoveMethodMetaData removeMethod = create(method);
      if(removeMethod == null)
         return;
     
      if(bean.getSessionType() != SessionType.Stateful)
         throw new IllegalArgumentException("Remove annotation is only valid on a stateful bean");
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.RemoveMethodMetaData

   {
      Remove remove = finder.getAnnotation(method, Remove.class);
      if(remove == null)
         return null;
     
      RemoveMethodMetaData metaData = new RemoveMethodMetaData();
      NamedMethodMetaData beanMethod = new NamedMethodMetaData();
      beanMethod.setMethodName(method.getName());
      metaData.setBeanMethod(beanMethod);
      metaData.setRetainIfException(remove.retainIfException());

      MethodParametersMetaData methodParams = ProcessorUtils.getMethodParameters(method);
      beanMethod.setMethodParams(methodParams);
     
      return metaData;
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.RemoveMethodMetaData

      return metaData;
   }
  
   public void process(SessionBeanMetaData bean, Method method)
   {
      RemoveMethodMetaData removeMethod = create(method);
      if(removeMethod == null)
         return;
     
      if(bean.getSessionType() != SessionType.Stateful)
         throw new IllegalArgumentException("Remove annotation is only valid on a stateful bean");
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.RemoveMethodMetaData

   {
      Remove remove = finder.getAnnotation(method, Remove.class);
      if(remove == null)
         return null;
     
      RemoveMethodMetaData metaData = new RemoveMethodMetaData();
      NamedMethodMetaData beanMethod = new NamedMethodMetaData();
      beanMethod.setMethodName(method.getName());
      metaData.setBeanMethod(beanMethod);
      metaData.setRetainIfException(remove.retainIfException());

      MethodParametersMetaData methodParams = ProcessorUtils.getMethodParameters(method);
      beanMethod.setMethodParams(methodParams);
     
      return metaData;
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.RemoveMethodMetaData

      return metaData;
   }
  
   public void process(JBossSessionBeanMetaData bean, Method method)
   {
      RemoveMethodMetaData removeMethod = create(method);
      if(removeMethod == null)
         return;
     
      if(bean.getSessionType() != SessionType.Stateful)
         throw new IllegalArgumentException("Remove annotation is only valid on a stateful bean");
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.RemoveMethodMetaData

      JBossSessionBeanMetaData sb = (JBossSessionBeanMetaData) specMerged.getEnterpriseBean("TargetBean");
      assertNotNull(sb);
      RemoveMethodsMetaData removeMethods = sb.getRemoveMethods();
      assertNotNull(removeMethods);
      assertEquals(1, removeMethods.size());
      RemoveMethodMetaData removeMethod = removeMethods.get(0);
      assertTrue(removeMethod.isRetainIfException());
   }
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.RemoveMethodMetaData

      assertEquals(MyStatefulBean.class.getName(), prePassivate.getClassName());
      // @Remove
      RemoveMethodsMetaData removeMethods = bean.getRemoveMethods();
      assertNotNull(removeMethods);
      assertEquals(1, removeMethods.size());
      RemoveMethodMetaData removeMethod = removeMethods.get(0);
      assertEquals("remove", removeMethod.getBeanMethod().getMethodName());
      // @Resource
      ResourceEnvironmentReferencesMetaData resource = bean.getResourceEnvironmentReferences();
      assertNotNull(resource);
      assertEquals(1, resource.size());
      ResourceEnvironmentReferenceMetaData ref = resource.get(bean.getEjbClass() + "/context");
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.RemoveMethodMetaData

      assertEquals(MyStatefulBean.class.getName(), prePassivate.getClassName());
      // @Remove
      RemoveMethodsMetaData removeMethods = bean.getRemoveMethods();
      assertNotNull(removeMethods);
      assertEquals(1, removeMethods.size());
      RemoveMethodMetaData removeMethod = removeMethods.get(0);
      assertEquals("remove", removeMethod.getBeanMethod().getMethodName());
      // @Resource
      ResourceEnvironmentReferencesMetaData resource = bean.getResourceEnvironmentReferences();
      assertNotNull(resource);
      assertEquals(1, resource.size());
      ResourceEnvironmentReferenceMetaData ref = resource.get(bean.getEjbClass() + "/context");
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.RemoveMethodMetaData

      assertEquals(MyStatefulBean.class.getName(), prePassivate.getClassName());
      // @Remove
      RemoveMethodsMetaData removeMethods = bean.getRemoveMethods();
      assertNotNull(removeMethods);
      assertEquals(1, removeMethods.size());
      RemoveMethodMetaData removeMethod = removeMethods.get(0);
      assertEquals("remove", removeMethod.getBeanMethod().getMethodName());
      // @Resource
      ResourceEnvironmentReferencesMetaData resource = bean.getResourceEnvironmentReferences();
      assertNotNull(resource);
      assertEquals(1, resource.size());
      ResourceEnvironmentReferenceMetaData ref = resource.get(bean.getEjbClass() + "/context");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.