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

How to use
destroySingletons
method
in
org.springframework.beans.factory.config.ConfigurableBeanFactory

Best Java code snippets using org.springframework.beans.factory.config.ConfigurableBeanFactory.destroySingletons (Showing top 7 results out of 315)

origin: Red5/red5-server

factory.destroySingletons();
applicationContext.close();
origin: camunda/camunda-bpm-platform

/**
 * Destroy definition in separate method so subclass may work with other definition types.
 * @param groupDef the factory returned by {@link #createDefinition createDefinition()}
 * @param selector the resource location for this factory group
 */
protected void destroyDefinition(BeanFactory groupDef, String selector) {
  if (groupDef instanceof ConfigurableBeanFactory) {
    if (logger.isTraceEnabled()) {
      logger.trace("Factory group with selector '" + selector +
          "' being released, as there are no more references to it");
    }
    ((ConfigurableBeanFactory) groupDef).destroySingletons();
  }
}
origin: org.jboss.snowdrop/snowdrop-deployers-core

  protected void doClose(ConfigurableBeanFactory beanFactory) {
    beanFactory.destroySingletons();
  }
};
origin: apache/servicemix-bundles

/**
 * Destroy definition in separate method so subclass may work with other definition types.
 * @param groupDef the factory returned by {@link #createDefinition createDefinition()}
 * @param selector the resource location for this factory group
 */
protected void destroyDefinition(BeanFactory groupDef, String selector) {
  if (groupDef instanceof ConfigurableBeanFactory) {
    if (logger.isTraceEnabled()) {
      logger.trace("Factory group with selector '" + selector +
          "' being released, as there are no more references to it");
    }
    ((ConfigurableBeanFactory) groupDef).destroySingletons();
  }
}
origin: springframework/spring-beans

/**
 * Destroy definition in separate method so subclass may work with other definition types.
 */
protected void destroyDefinition(BeanFactory groupDef, String resourceName) throws BeansException {
  if (groupDef instanceof ConfigurableBeanFactory) {
    // debugging trace only
    if (logger.isDebugEnabled()) {
      logger.debug("Factory group with resource name '" + resourceName +
          "' being released, as there are no more references to it.");
    }
    ((ConfigurableBeanFactory) groupDef).destroySingletons();
  }
}
origin: org.sakaiproject.metaobj/sakai-metaobj-tool-lib

public void destroy() throws BeansException {
 for (Iterator it = this.cachedFactories.values().iterator(); it.hasNext();) {
   ConfigurableBeanFactory factory = (ConfigurableBeanFactory) it.next();
   factory.destroySingletons();
 }
 this.cachedFactories.clear();
}
origin: org.apache.cocoon/cocoon-sitemap-impl

/**
 * @see org.apache.avalon.framework.activity.Disposable#dispose()
 */
public void dispose() {
  if (this.disposableNodes != null) {
    // we must dispose the nodes in reverse order
    // otherwise selector nodes are freed before the components node
    for (int i = this.disposableNodes.size() - 1; i > -1; i--) {
      ((Disposable) disposableNodes.get(i)).dispose();
    }
    this.disposableNodes = null;
  }
  // Ensure it won't be used anymore
  this.rootNode = null;
  this.sitemapExecutor = null;
  // clear listeners
  this.enterSitemapEventListeners.clear();
  this.leaveSitemapEventListeners.clear();
  if ( this.webAppContext != null ) {
    if ( webAppContext instanceof ConfigurableApplicationContext ) {
      ((ConfigurableApplicationContext)webAppContext).close();
    } else if ( webAppContext instanceof ConfigurableBeanFactory ) {
      ((ConfigurableBeanFactory)webAppContext).destroySingletons();
    }
    this.webAppContext = null;
  }
}
org.springframework.beans.factory.configConfigurableBeanFactorydestroySingletons

Javadoc

Destroy all singleton beans in this factory, including inner beans that have been registered as disposable. To be called on shutdown of a factory.

Any exception that arises during destruction should be caught and logged instead of propagated to the caller of this method.

Popular methods of ConfigurableBeanFactory

  • resolveEmbeddedValue
    Resolve the given embedded value, e.g. an annotation attribute.
  • getBeanExpressionResolver
    Return the resolution strategy for expressions in bean definition values.
  • getBean
  • registerSingleton
    Register the given existing object as singleton in the bean factory, under the given bean name.The g
  • getTypeConverter
    Obtain a type converter as used by this BeanFactory. This may be a fresh instance for each call, sin
  • getBeanClassLoader
    Return this factory's class loader for loading bean classes (only null if even the system ClassLoade
  • containsBean
  • getConversionService
    Return the associated ConversionService, if any.
  • getMergedBeanDefinition
    Return a merged BeanDefinition for the given bean name, merging a child bean definition with its par
  • isCurrentlyInCreation
    Determine whether the specified bean is currently in creation.
  • getSingletonMutex
  • getSingletonNames
  • getSingletonMutex,
  • getSingletonNames,
  • registerDependentBean,
  • containsSingleton,
  • destroyBean,
  • isFactoryBean,
  • isSingleton,
  • registerAlias,
  • addBeanPostProcessor

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top 12 Jupyter Notebook Extensions
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