RESOLVEDTYPE - The type to be processedRETURNTYPE - The type to be returned
Desired format to be returned from the ResolvedArtifact input in process(ResolvedArtifact, Class)public interface FormatProcessor<RESOLVEDTYPE extends ResolvedArtifact<RESOLVEDTYPE>,RETURNTYPE>
ResolvedArtifact and returns as a typed format.
Any format processor can be registered via SPI. See ServiceLoader for further details.| Modifier and Type | Method and Description |
|---|---|
boolean |
handles(Class<?> resolvedTypeClass)
Checks if the processor is able to process
resolvedTypeClass |
RETURNTYPE |
process(RESOLVEDTYPE input,
Class<RETURNTYPE> returnType)
Processes the specified
RESOLVEDTYPE and returns as the typed return value. |
boolean |
returns(Class<?> returnTypeClass)
Checks if the processor is able to return
returnTypeClass. |
boolean handles(Class<?> resolvedTypeClass)
resolvedTypeClassresolvedTypeClass - The type to be processedresolvedTypeClass or notboolean returns(Class<?> returnTypeClass)
returnTypeClass.returnTypeClass - The type to be returnedreturnTypeClass or notRETURNTYPE process(RESOLVEDTYPE input, Class<RETURNTYPE> returnType) throws IllegalArgumentException
RESOLVEDTYPE and returns as the typed return value.input - The type to be processedreturnType - The type to be returnedIllegalArgumentException - If the RESOLVEDTYPE argument is not specified or nullCopyright © 2017 JBoss by Red Hat. All rights reserved.