Package org.jboss.ejb3.annotation

Examples of org.jboss.ejb3.annotation.Producers


   public StatefulBeanContext create(Class<?>[] initTypes, Object[] initValues)
   {
      StatefulBeanContext sfctx = (StatefulBeanContext) createBeanContext();
      // Tell context how to handle replication
      CacheConfig config = getAnnotation(CacheConfig.class);
      if (config != null)
      {
         sfctx.setReplicationIsPassivation(config.replicationIsPassivation());
      }

      // this is for propagated extended PC's
      sfctx = sfctx.pushContainedIn();
     
View Full Code Here


      return null;
   }
  
   protected void findPartitionName()
   {
      Clustered clustered = (Clustered) getAnnotation(Clustered.class);
      if (clustered == null)
      {
         partitionName = null;
         return;
      }
     
      String value = clustered.partition();
      try
      {
         String replacedValue = StringPropertyReplacer.replaceProperties(value);
         if (value != replacedValue)
         {           
View Full Code Here

   }

   private static String getLocalJndiName(JBossEnterpriseBeanMetaData ejb, Class<?> ejbClass)
   {
      // See if local binding is explicitly-defined
      LocalBinding localBinding = ejbClass.getAnnotation(LocalBinding.class);

      // If none specified
      if (localBinding == null || (localBinding.jndiBinding() != null && localBinding.jndiBinding().trim().length() == 0))
      {
         String name = ejb.getLocalJndiName();
         return name;
      }
      // Local Binding was explicitly-specified, use it
      else
      {
         return localBinding.jndiBinding();
      }
   }
View Full Code Here

         List<Class<?>> list = new ArrayList<Class<?>>();
         list.add(classInterfaces[0]);
         return list;
      }
      List<Class<?>> interfaces = new ArrayList<Class<?>>();
      Producers producers = (Producers) resolveAnnotation(Producers.class);
      if (producers != null)
      {
         for (Producer producer : producers.value())
         {
            interfaces.add(producer.producer());
         }
      }
View Full Code Here

   }
  
   @Override
   public void process(JBossConsumerBeanMetaData metaData, Class<?> type)
   {
      Producers annotation = finder.getAnnotation(type, Producers.class);
      if(annotation == null)
         return;
     
      for(Producer producer : annotation.value())
      {
         super.process(metaData, producer, null);
      }
   }
View Full Code Here

         List<Class<?>> list = new ArrayList<Class<?>>();
         list.add(classInterfaces[0]);
         return list;
      }
      List<Class<?>> interfaces = new ArrayList<Class<?>>();
      Producers producers = (Producers) resolveAnnotation(Producers.class);
      if (producers != null)
      {
         for (Producer producer : producers.value())
         {
            interfaces.add(producer.producer());
         }
      }
View Full Code Here

         List<Class<?>> list = new ArrayList<Class<?>>();
         list.add(classInterfaces[0]);
         return list;
      }
      List<Class<?>> interfaces = new ArrayList<Class<?>>();
      Producers producers = (Producers) resolveAnnotation(Producers.class);
      if (producers != null)
      {
         for (Producer producer : producers.value())
         {
            interfaces.add(producer.producer());
         }
      }
View Full Code Here

      Producer p = (Producer) producer.getAnnotation(Producer.class);
      if (p == null)
         p = (Producer)container.resolveAnnotation(Producer.class);
      if (p == null)
      {
         Producers annotation = (Producers)container.resolveAnnotation(Producers.class);
         Producer[] producers = annotation.value();
         for (int i = 0 ; i < producers.length ; ++i)
         {
            if (producers[i].producer() != null && producers[i].producer().equals(producer))
               p = producers[i];
         }
View Full Code Here

         List<Class<?>> list = new ArrayList<Class<?>>();
         list.add(classInterfaces[0]);
         return list;
      }
      List<Class<?>> interfaces = new ArrayList<Class<?>>();
      Producers producers = (Producers) resolveAnnotation(Producers.class);
      if (producers != null)
      {
         for (Producer producer : producers.value())
         {
            interfaces.add(producer.producer());
         }
      }
View Full Code Here

      Producer p = (Producer) producer.getAnnotation(Producer.class);
      if (p == null)
         p = (Producer)container.resolveAnnotation(Producer.class);
      if (p == null)
      {
         Producers annotation = (Producers)container.resolveAnnotation(Producers.class);
         Producer[] producers = annotation.value();
         for (int i = 0 ; i < producers.length ; ++i)
         {
            if (producers[i].producer() != null && producers[i].producer().equals(producer))
               p = producers[i];
         }
View Full Code Here

TOP

Related Classes of org.jboss.ejb3.annotation.Producers

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.