org.keycloak.models.utils.reflection

## Class AnnotatedPropertyCriteria

- java.lang.Object
- - org.keycloak.models.utils.reflection.AnnotatedPropertyCriteria

- All Implemented Interfaces:
    PropertyCriteria

      public class AnnotatedPropertyCriteria
      extends Object
      implements PropertyCriteria

  A criteria that matches a property based on its annotations
  See Also:
    `PropertyCriteria`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AnnotatedPropertyCriteria(Class<? extends Annotation> annotationClass)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `methodMatches(Method m)` Tests whether the specified method matches the criteria

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AnnotatedPropertyCriteria

          public AnnotatedPropertyCriteria(Class<? extends Annotation> annotationClass)

  - ### Method Detail

    - #### methodMatches

          public boolean methodMatches(Method m)

      Description copied from interface: `PropertyCriteria`
      Tests whether the specified method matches the criteria
      Specified by:
        `methodMatches` in interface `PropertyCriteria`
      Returns:
        true if the method matches

Copyright © 2014. All Rights Reserved.