RESOLVEDTYPE - RETURNTYPE - Desired format to be returned from the ResolvedArtifact input in FormatProcessor#process(File, 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
RESOLVEDTYPE |
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)
RESOLVEDTYPEresolvedTypeClass - boolean returns(Class<?> returnTypeClass)
returnTypeClass.returnTypeClass - RETURNTYPE process(RESOLVEDTYPE input, Class<RETURNTYPE> returnType) throws IllegalArgumentException
RESOLVEDTYPE and returns as the typed return value.RESOLVEDTYPE - input - returnType - IllegalArgumentException - If the RESOLVEDTYPE argument is not specified or nullCopyright © 2013 JBoss by Red Hat. All Rights Reserved.