Class PluginRegistry.PluginTest
java.lang.Object
org.apache.logging.log4j.core.config.plugins.util.PluginRegistry.PluginTest
- All Implemented Interfaces:
ResolverUtil.Test
- Enclosing class:
- PluginRegistry
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
Will be called repeatedly with candidate classes.boolean
Test for a resource.toString()
-
Constructor Details
-
PluginTest
public PluginTest()
-
-
Method Details
-
matches
Description copied from interface:ResolverUtil.Test
Will be called repeatedly with candidate classes. Must return True if a class is to be included in the results, false otherwise.- Specified by:
matches
in interfaceResolverUtil.Test
- Parameters:
type
- The Class to match against.- Returns:
- true if the Class matches.
-
toString
-
matches
Description copied from interface:ResolverUtil.Test
Test for a resource.- Specified by:
matches
in interfaceResolverUtil.Test
- Parameters:
resource
- The URI to the resource.- Returns:
- true if the resource matches.
-
doesMatchClass
public boolean doesMatchClass()- Specified by:
doesMatchClass
in interfaceResolverUtil.Test
-
doesMatchResource
public boolean doesMatchResource()- Specified by:
doesMatchResource
in interfaceResolverUtil.Test
-