Codota Logo
BeanDefinition.destroyMethodPoints
Code IndexAdd Codota to your IDE (free)

How to use
destroyMethodPoints
method
in
jodd.petite.BeanDefinition

Best Java code snippets using jodd.petite.BeanDefinition.destroyMethodPoints (Showing top 4 results out of 315)

  • Common ways to obtain BeanDefinition
private void myMethod () {
BeanDefinition b =
  • Codota IconPetiteContainer petiteContainer;petiteContainer.createBeanDefinitionForRegistration(name, type, scope, wiringMode, consumer)
  • Smart code suggestions by Codota
}
origin: oblac/jodd

/**
 * Calls destroy methods on given BeanData. Destroy methods are called
 * without any order.
 */
public void callDestroyMethods() {
  for (final DestroyMethodPoint destroyMethodPoint : beanDefinition.destroyMethodPoints()) {
    try {
      destroyMethodPoint.method.invoke(bean);
    } catch (Exception ex) {
      throw new PetiteException("Invalid destroy method: " + destroyMethodPoint.method, ex);
    }
  }
}
origin: oblac/jodd

/**
 * Returns <code>true</code> if bean is destroyable.
 */
protected boolean isBeanDestroyable(final BeanData beanData) {
  DestroyMethodPoint[] dmp = beanData.definition().destroyMethodPoints();
  return dmp != null && dmp.length != 0;
}
origin: org.jodd/jodd-petite

/**
 * Returns <code>true</code> if bean is destroyable.
 */
protected boolean isBeanDestroyable(final BeanData beanData) {
  DestroyMethodPoint[] dmp = beanData.definition().destroyMethodPoints();
  return dmp != null && dmp.length != 0;
}
origin: org.jodd/jodd-petite

/**
 * Calls destroy methods on given BeanData. Destroy methods are called
 * without any order.
 */
public void callDestroyMethods() {
  for (final DestroyMethodPoint destroyMethodPoint : beanDefinition.destroyMethodPoints()) {
    try {
      destroyMethodPoint.method.invoke(bean);
    } catch (Exception ex) {
      throw new PetiteException("Invalid destroy method: " + destroyMethodPoint.method, ex);
    }
  }
}
jodd.petiteBeanDefinitiondestroyMethodPoints

Javadoc

Returns destroy method points.

Popular methods of BeanDefinition

  • name
    Returns bean name.
  • type
    Returns bean type.
  • <init>
  • addInitMethodPoints
    Adds init methods.
  • addMethodInjectionPoint
    Adds method injection point.
  • addPropertyInjectionPoint
    Adds property injection point.
  • addSetInjectionPoint
    Adds set injection point.
  • scopeLookup
    Delegates to jodd.petite.scope.Scope#lookup(String).
  • scopeRegister
    Delegates to jodd.petite.scope.Scope#register(jodd.petite.BeanDefinition,Object)if scope is defined.
  • scopeRemove
    Delegates to jodd.petite.scope.Scope#remove(String).
  • addDestroyMethodPoints
    Adds destroy methods.
  • consumer
    Returns an optional consumer.
  • addDestroyMethodPoints,
  • consumer,
  • initMethodPoints,
  • scope

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Socket (java.net)
    Provides a client-side TCP socket.
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Notification (javax.management)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now