congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BeanDefinition.destroyMethodPoints
Code IndexAdd Tabnine 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)

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

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Join (org.hibernate.mapping)
  • Top 12 Jupyter Notebook extensions
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