- All Known Implementing Classes:
AssertResourceExists
public interface Handler
Processes resources from the class path.
Implementations MUST:
- Be public
- Have a public no-args constructor
- Be available as compiled types on the compiler classpath
Processor.
That is:
- The result of processing a given input is not a function of the presence or absence of other inputs (orthogonality)
- Processing the same input produces the same output (consistency)
- Processing input A followed by processing input B is equivalent to processing B then A (commutativity)
- Processing an input does not rely on the presence of the output of other annotation processors (independence)
- See Also:
-
Method Summary
-
Method Details
-
handle
Handles the context resources.- Parameters:
context- processing context- Throws:
Exception- any exception- See Also:
-
config
The configuration supported by this handler.- Returns:
- empty set by default
-
validConfig
Validates the
Context.config(). Override to change behaviour.The default implementation returns true if:
- Key names are unique
- Key names match
config()ConfigDef.key() - Values pass
config()ConfigDef.isValid(String)
- Parameters:
config- handler configurationerrorReporter- error message consumer- Returns:
- true if the config is valid for this handler
-