Package org.jboss.metadata.ejb.jboss

Examples of org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData


      }
     
      for (int ejbIndex = 0; ejbIndex < ejbNames.size(); ++ejbIndex)
      {
         String ejbName = ejbNames.get(ejbIndex);
         JBossEnterpriseBeanMetaData enterpriseBean = ejbs.get(ejbIndex);
         try
         {
            ejbType = getEjbType(enterpriseBean);
         }
         catch (IllegalStateException ise)
         {
            continue;
         }
         className = enterpriseBean.getEjbClass();
        
         if (className == null)
            log.warn("Descriptor based bean has no ejb-class defined: " + ejbName);
         else
         {
View Full Code Here


      return container;
   }

   protected String getAspectDomain(int ejbIndex, String defaultDomain)
   {
      JBossEnterpriseBeanMetaData enterpriseBean = ejbs.get(ejbIndex);
      if (enterpriseBean != null)
      {
         String aopDomainName = enterpriseBean.getAopDomainName();
         if (aopDomainName != null)
         {
            log.debug("Found aop-domain-name element for annotation "
                  + aopDomainName + " for ejbName "
                  + enterpriseBean.getEjbName());

            return aopDomainName;
         }
      }
      return super.getAspectDomain(ejbIndex, defaultDomain);
View Full Code Here

   }
  
   protected Method getTimeoutCallback(NamedMethodMetaData timeoutMethodMetaData, Class<?> beanClass)
   {
      String methodName = null;
      JBossEnterpriseBeanMetaData metaData = xml;
      if(metaData != null)
      {
         if(timeoutMethodMetaData != null)
         {
            methodName = timeoutMethodMetaData.getMethodName();
         }
      }
     
      Method timeoutMethod = timeoutMethodCallbackRequirements.getTimeoutMethod(beanClass, methodName);
      if(timeoutMethod != null)
         return timeoutMethod;

      // TODO: should not be needed
      // TODO: ServiceContainer does not container correct metadata
     
      if(metaData != null)
      { 
         // TODO: cross cutting concern
         if(metaData.getEjbJarMetaData().isMetadataComplete())
            return null;
      }
     
      for (Method method : beanClass.getMethods())
      {
View Full Code Here

      //         return factory.createProxyBusiness();
   }

   public boolean isClustered()
   {
      JBossEnterpriseBeanMetaData md = getXml();
      if (md instanceof JBossSessionBeanMetaData)
      {
         return ((JBossSessionBeanMetaData) md).isClustered();
      }
      return isAnnotationPresent(Clustered.class);
View Full Code Here

      metaData.setAssemblyDescriptor(new JBossAssemblyDescriptorMetaData());
     
      JBossEnterpriseBeansMetaData enterpriseBeans = new JBossEnterpriseBeansMetaData();
      metaData.setEnterpriseBeans(enterpriseBeans);
     
      JBossEnterpriseBeanMetaData beanMetaData = new JBossSessionBeanMetaData();
      beanMetaData.setEjbName("TwoLifecycleMethodsBean");
      enterpriseBeans.add(beanMetaData);
     
      ManagedObjectContainer<TwoLifecycleMethodsBean> container = new ManagedObjectContainer<TwoLifecycleMethodsBean>(beanMetaData.getEjbName(), "Test", TwoLifecycleMethodsBean.class, beanMetaData);
     
      BeanContext<TwoLifecycleMethodsBean> bean = container.construct();
     
      container.destroy(bean);
     
View Full Code Here

      return null;
   }
  
   public boolean isClustered()
   {
      JBossEnterpriseBeanMetaData md = getXml();
      if (md instanceof JBossSessionBeanMetaData)
      {
         return ((JBossSessionBeanMetaData)md).isClustered();
      }
      return isAnnotationPresent(Clustered.class);
View Full Code Here

   }
  
   protected Method getTimeoutCallback(NamedMethodMetaData timeoutMethodMetaData, Class<?> beanClass)
   {
      String methodName = null;
      JBossEnterpriseBeanMetaData metaData = xml;
      if(metaData != null)
      {
         if(timeoutMethodMetaData != null)
         {
            methodName = timeoutMethodMetaData.getMethodName();
         }
      }
     
      Method timeoutMethod = timeoutMethodCallbackRequirements.getTimeoutMethod(beanClass, methodName);
      if(timeoutMethod != null)
         return timeoutMethod;

      // TODO: should not be needed
      // TODO: ServiceContainer does not container correct metadata
     
      if(metaData != null)
      { 
         // TODO: cross cutting concern
         if(metaData.getEjbJarMetaData().isMetadataComplete())
            return null;
      }
     
      for (Method method : beanClass.getMethods())
      {
View Full Code Here

      return null;
   }
  
   public boolean isClustered()
   {
      JBossEnterpriseBeanMetaData md = getXml();
      if (md instanceof JBossSessionBeanMetaData)
      {
         return ((JBossSessionBeanMetaData)md).isClustered();
      }
      return isAnnotationPresent(Clustered.class);
View Full Code Here

      //         return factory.createProxyBusiness();
   }

   public boolean isClustered()
   {
      JBossEnterpriseBeanMetaData md = getXml();
      if (md instanceof JBossSessionBeanMetaData)
      {
         return ((JBossSessionBeanMetaData) md).isClustered();
      }
      return isAnnotationPresent(Clustered.class);
View Full Code Here

  
   protected Method getTimeoutCallback(NamedMethodMetaData timeoutMethodMetaData, Class<?> beanClass)
   {
      String methodName = null;
      Class<?>[] timeoutMethodParams = null;
      JBossEnterpriseBeanMetaData metaData = xml;
      if(metaData != null)
      {
         if(timeoutMethodMetaData != null)
         {
            // timeout method name
            methodName = timeoutMethodMetaData.getMethodName();
            // timeout method params
            MethodParametersMetaData methodParams = timeoutMethodMetaData.getMethodParams();
            String[] paramTypes = methodParams == null ? null : methodParams.toArray(new String[methodParams.size()]);
            timeoutMethodParams = this.loadTimeoutMethodParamTypes(beanClass.getClassLoader(), paramTypes);
         }
      }
     
      Method timeoutMethod = timeoutMethodCallbackRequirements.getTimeoutMethod(beanClass, methodName, timeoutMethodParams);
      if(timeoutMethod != null)
         return timeoutMethod;

      // TODO: should not be needed
      // TODO: ServiceContainer does not container correct metadata
     
      if(metaData != null)
      { 
         // TODO: cross cutting concern
         if(metaData.getEjbJarMetaData().isMetadataComplete())
            return null;
      }
     
      for (Method method : beanClass.getMethods())
      {
View Full Code Here

TOP

Related Classes of org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData

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.