com.opensymphony.xwork2.util

## Class ResolverUtil.ResourceTest

- java.lang.Object
- - com.opensymphony.xwork2.util.ResolverUtil.ResourceTest

- All Implemented Interfaces:
    ResolverUtil.Test
  Direct Known Subclasses:
    ResolverUtil.NameIs
  Enclosing class:
    ResolverUtil<T>

      public abstract static class ResolverUtil.ResourceTest
      extends Object
      implements ResolverUtil.Test

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ResourceTest()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `doesMatchClass()`
    `boolean` | `doesMatchResource()`
    `boolean` | `matches(Class cls)` Will be called repeatedly with candidate classes.

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

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

    - ### Methods inherited from interface com.opensymphony.xwork2.util.ResolverUtil.Test

      `matches`

- - ### Constructor Detail

    - #### ResourceTest

          public ResourceTest()

  - ### Method Detail

    - #### matches

          public boolean matches(Class cls)

      Description copied from interface: `ResolverUtil.Test`
      Will be called repeatedly with candidate classes.
      Specified by:
        `matches` in interface `ResolverUtil.Test`
      Parameters:
        `cls` - class type
      Returns:
        True if a class is to be included in the results, false otherwise.

    - #### doesMatchClass

          public boolean doesMatchClass()

      Specified by:
        `doesMatchClass` in interface `ResolverUtil.Test`

    - #### doesMatchResource

          public boolean doesMatchResource()

      Specified by:
        `doesMatchResource` in interface `ResolverUtil.Test`

Copyright © 2000–2026 Apache Software Foundation. All rights reserved.