Class PluginRegistry.PluginTest
- java.lang.Object
-
- org.apache.logging.log4j.core.config.plugins.util.PluginRegistry.PluginTest
-
- All Implemented Interfaces:
ResolverUtil.Test
- Enclosing class:
- PluginRegistry
public static class PluginRegistry.PluginTest extends java.lang.Object implements ResolverUtil.Test
A Test that checks to see if each class is annotated with the 'Plugin' annotation. If it is, then the test returns true, otherwise false.- Since:
- 2.1
-
-
Constructor Summary
Constructors Constructor Description PluginTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoesMatchClass()booleandoesMatchResource()booleanmatches(java.lang.Class<?> type)Will be called repeatedly with candidate classes.booleanmatches(java.net.URI resource)Test for a resource.java.lang.StringtoString()
-
-
-
Method Detail
-
matches
public boolean matches(java.lang.Class<?> type)
Description copied from interface:ResolverUtil.TestWill be called repeatedly with candidate classes. Must return True if a class is to be included in the results, false otherwise.- Specified by:
matchesin interfaceResolverUtil.Test- Parameters:
type- The Class to match against.- Returns:
- true if the Class matches.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
matches
public boolean matches(java.net.URI resource)
Description copied from interface:ResolverUtil.TestTest for a resource.- Specified by:
matchesin interfaceResolverUtil.Test- Parameters:
resource- The URI to the resource.- Returns:
- true if the resource matches.
-
doesMatchClass
public boolean doesMatchClass()
- Specified by:
doesMatchClassin interfaceResolverUtil.Test
-
doesMatchResource
public boolean doesMatchResource()
- Specified by:
doesMatchResourcein interfaceResolverUtil.Test
-
-