congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
StatelessObjectFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
StatelessObjectFactory
in
org.jboss.as.ejb3.pool

Best Java code snippets using org.jboss.as.ejb3.pool.StatelessObjectFactory (Showing top 6 results out of 315)

origin: wildfly/wildfly

protected T create() {
  T bean = factory.create();
  createCount.incrementAndGet();
  return bean;
}
origin: wildfly/wildfly

  /**
   * Remove the bean context and invoke any callbacks
   * and track the remove count
   *
   * @param bean
   */
  protected void doRemove(T bean) {
    try {
      factory.destroy(bean);
    } finally {
      removeCount.incrementAndGet();
    }
  }
}
origin: org.jboss.as/jboss-as-ejb3

  /**
   * Remove the bean context and invoke any callbacks
   * and track the remove count
   *
   * @param bean
   */
  protected void doRemove(T bean) {
    try {
      factory.destroy(bean);
    } finally {
      removeCount.incrementAndGet();
    }
  }
}
origin: org.jboss.as/jboss-as-ejb3

protected T create() {
  T bean = factory.create();
  createCount.incrementAndGet();
  return bean;
}
origin: org.jboss.as/jboss-as-ejb3

public void releaseEntityBeanInstance(final EntityBeanComponentInstance instance) {
  if (pool != null) {
    pool.release(instance);
  } else {
    factory.destroy(instance);
  }
}
origin: org.jboss.as/jboss-as-ejb3

public EntityBeanComponentInstance acquireUnAssociatedInstance() {
  if (pool != null) {
    return pool.get();
  } else {
    return factory.create();
  }
}
org.jboss.as.ejb3.poolStatelessObjectFactory

Javadoc

Creates and destroys stateless objects.

The object returned by create has dependencies injected. The PostConstruct callback, if defined, has been called.

Most used methods

  • create
    Creates a new stateless object by calling it's empty constructor, do injection and calling post-cons
  • destroy
    Perform any cleanup actions on the object, such as calling the pre-destroy callback.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • getSystemService (Context)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JButton (javax.swing)
  • Option (scala)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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