congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Consumer
Code IndexAdd Tabnine to your IDE (free)

How to use
Consumer
in
org.jboss.ejb3.annotation

Best Java code snippets using org.jboss.ejb3.annotation.Consumer (Showing top 3 results out of 315)

origin: org.jboss.ejb3/jboss-ejb3-core

public Map<String, ActivationConfigPropertyMetaData> getActivationConfigProperties()
{
 Map<String, ActivationConfigPropertyMetaData> result = new HashMap<String, ActivationConfigPropertyMetaData>();
 Consumer annotation = (Consumer) resolveAnnotation(Consumer.class);
 for (ActivationConfigProperty property : annotation.activationConfig())
 {
   addActivationSpecProperty(result, property);
 }
 
 DefaultActivationSpecs defaultSpecsAnnotation = (DefaultActivationSpecs)resolveAnnotation(DefaultActivationSpecs.class);
 if (defaultSpecsAnnotation != null)
 {
   for (ActivationConfigProperty property : defaultSpecsAnnotation.value())
   {
    addActivationSpecProperty(result, property);
   }
 }
 
 return result;
}
origin: org.jboss.ws/jbossws-jboss510-metadata

@Override
public JBossConsumerBeanMetaData create(Class<?> beanClass)
{
 Consumer annotation = finder.getAnnotation(beanClass, Consumer.class);
 if(annotation == null)
   return null;
 
 JBossConsumerBeanMetaData metaData = new JBossConsumerBeanMetaData();
 metaData.setEjbClass(beanClass.getName());
 if(annotation.name().length() > 0)
   metaData.setEjbName(annotation.name());
 else
   metaData.setEjbName(beanClass.getSimpleName());
 
 ActivationConfigProperty[] props = annotation.activationConfig();
 ActivationConfigMetaData config = new ActivationConfigMetaData();
 ActivationConfigPropertiesMetaData configProps = new ActivationConfigPropertiesMetaData();
 config.setActivationConfigProperties(configProps);
 for(ActivationConfigProperty prop : props)
 {
   ActivationConfigPropertyMetaData acp = new ActivationConfigPropertyMetaData();
   acp.setActivationConfigPropertyName(prop.propertyName());
   acp.setValue(prop.propertyValue());
   configProps.add(acp);
 }
 metaData.setActivationConfig(config);
 
 return metaData;
}
origin: org.jboss.ejb3/jboss-ejb3-core

protected void populateActivationSpec()
{
 DefaultActivationSpecs defaultSpecs = (DefaultActivationSpecs) resolveAnnotation(DefaultActivationSpecs.class);
 if (defaultSpecs != null)
 {
   activationSpec.merge(defaultSpecs.value());
 }
 Consumer md = (Consumer) resolveAnnotation(Consumer.class);
 activationSpec.merge(md.activationConfig());
}
org.jboss.ejb3.annotationConsumer

Most used methods

  • activationConfig
  • name

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now