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

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

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

origin: org.jboss.ws/jbossws-jboss510-metadata

public void process(JBossSessionBeanMetaData metaData, Class<?> type)
{
 CacheConfig annotation = finder.getAnnotation(type, CacheConfig.class);
 if(annotation == null)
   return;
 
 CacheConfigMetaData cacheConfig = new CacheConfigMetaData();
 cacheConfig.setMaxSize(annotation.maxSize());
 cacheConfig.setName(annotation.name());
 cacheConfig.setIdleTimeoutSeconds(Integer.valueOf((int) annotation.idleTimeoutSeconds()));
 cacheConfig.setRemoveTimeoutSeconds(Integer.valueOf((int) annotation.removalTimeoutSeconds()));
 
 cacheConfig.setReplicationIsPassivation(Boolean.toString(annotation.replicationIsPassivation()));
 
 metaData.setCacheConfig(cacheConfig);
}
origin: org.jboss.ejb3/jboss-ejb3-core

pm.initialize(container);
CacheConfig config = (CacheConfig) advisor.resolveAnnotation(CacheConfig.class);
maxSize = config.maxSize();
sessionTimeout = config.idleTimeoutSeconds();
removalTimeout = config.removalTimeoutSeconds() * 1000;
SessionBeanEffigy effigy = this.container.getEffigy();
if(effigy != null)
origin: org.jboss.ejb3/jboss-ejb3-core

/**
* @see org.jboss.ejb3.cache.StatefulObjectFactory#create(Class[], Object[]) 
*/
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();
 pushContext(sfctx);
 try
 {
   injectBeanContext(sfctx);
   StatefulBeanContext.currentBean.push(sfctx);
   invokePostConstruct(sfctx);
 }
 finally
 {
   StatefulBeanContext.currentBean.pop();
   popContext();
   // this is for propagated extended PC's
   sfctx.popContainedIn();
 }
 return sfctx;
}
org.jboss.ejb3.annotationCacheConfig

Most used methods

  • idleTimeoutSeconds
  • maxSize
  • removalTimeoutSeconds
  • replicationIsPassivation
  • name

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • CodeWhisperer alternatives
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