Tabnine Logo
ReflectiveMethodResolver.registerMethodFilter
Code IndexAdd Tabnine to your IDE (free)

How to use
registerMethodFilter
method
in
org.springframework.expression.spel.support.ReflectiveMethodResolver

Best Java code snippets using org.springframework.expression.spel.support.ReflectiveMethodResolver.registerMethodFilter (Showing top 3 results out of 315)

origin: spring-projects/spring-framework

/**
 * Register a {@code MethodFilter} which will be called during method resolution
 * for the specified type.
 * <p>The {@code MethodFilter} may remove methods and/or sort the methods which
 * will then be used by SpEL as the candidates to look through for a match.
 * @param type the type for which the filter should be called
 * @param filter a {@code MethodFilter}, or {@code null} to unregister a filter for the type
 * @throws IllegalStateException if the {@link ReflectiveMethodResolver} is not in use
 */
public void registerMethodFilter(Class<?> type, MethodFilter filter) throws IllegalStateException {
  initMethodResolvers();
  ReflectiveMethodResolver resolver = this.reflectiveMethodResolver;
  if (resolver == null) {
    throw new IllegalStateException(
        "Method filter cannot be set as the reflective method resolver is not in use");
  }
  resolver.registerMethodFilter(type, filter);
}
origin: org.springframework/spring-expression

/**
 * Register a {@code MethodFilter} which will be called during method resolution
 * for the specified type.
 * <p>The {@code MethodFilter} may remove methods and/or sort the methods which
 * will then be used by SpEL as the candidates to look through for a match.
 * @param type the type for which the filter should be called
 * @param filter a {@code MethodFilter}, or {@code null} to unregister a filter for the type
 * @throws IllegalStateException if the {@link ReflectiveMethodResolver} is not in use
 */
public void registerMethodFilter(Class<?> type, MethodFilter filter) throws IllegalStateException {
  initMethodResolvers();
  ReflectiveMethodResolver resolver = this.reflectiveMethodResolver;
  if (resolver == null) {
    throw new IllegalStateException(
        "Method filter cannot be set as the reflective method resolver is not in use");
  }
  resolver.registerMethodFilter(type, filter);
}
origin: apache/servicemix-bundles

/**
 * Register a {@code MethodFilter} which will be called during method resolution
 * for the specified type.
 * <p>The {@code MethodFilter} may remove methods and/or sort the methods which
 * will then be used by SpEL as the candidates to look through for a match.
 * @param type the type for which the filter should be called
 * @param filter a {@code MethodFilter}, or {@code null} to unregister a filter for the type
 * @throws IllegalStateException if the {@link ReflectiveMethodResolver} is not in use
 */
public void registerMethodFilter(Class<?> type, MethodFilter filter) throws IllegalStateException {
  initMethodResolvers();
  ReflectiveMethodResolver resolver = this.reflectiveMethodResolver;
  if (resolver == null) {
    throw new IllegalStateException(
        "Method filter cannot be set as the reflective method resolver is not in use");
  }
  resolver.registerMethodFilter(type, filter);
}
org.springframework.expression.spel.supportReflectiveMethodResolverregisterMethodFilter

Javadoc

Register a filter for methods on the given type.

Popular methods of ReflectiveMethodResolver

  • resolve
    Locate a method on a type. There are three kinds of match that might occur: 1. an exact match w
  • <init>
    This constructor allows the ReflectiveMethodResolver to be configured such that it will use a distan
  • getMethods
  • isCandidateForInvocation
    Determine whether the given Method is a candidate for method resolution on an instance of the given

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • 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