@Named(value="core-default") @Singleton @Typed(value=ModelProcessor.class) public class DefaultModelProcessor extends Object implements ModelProcessor
SOURCEINPUT_SOURCE, IS_STRICT, TRANSFORMER_CONTEXT| Constructor and Description |
|---|
DefaultModelProcessor(ModelLocator locator,
ModelReader reader) |
| Modifier and Type | Method and Description |
|---|---|
File |
locatePom(File projectDirectory)
Locates the POM file within the specified project directory.
|
org.apache.maven.api.model.Model |
read(File input,
Map<String,?> options)
Reads the model from the specified file.
|
org.apache.maven.api.model.Model |
read(InputStream input,
Map<String,?> options)
Reads the model from the specified byte stream.
|
org.apache.maven.api.model.Model |
read(Reader input,
Map<String,?> options)
Reads the model from the specified character reader.
|
@Inject public DefaultModelProcessor(ModelLocator locator, ModelReader reader)
public File locatePom(File projectDirectory)
ModelLocatorlocatePom in interface ModelLocatorprojectDirectory - The (possibly non-existent) base directory to locate the POM file in, must not be null.null.public org.apache.maven.api.model.Model read(File input, Map<String,?> options) throws IOException
ModelReaderread in interface ModelReaderinput - The file to deserialize the model from, must not be null.options - The options to use for deserialization, may be null to use the default values.null.IOException - If the model could not be deserialized.ModelParseException - If the input format could not be parsed.public org.apache.maven.api.model.Model read(Reader input, Map<String,?> options) throws IOException
ModelReaderread in interface ModelReaderinput - The reader to deserialize the model from, must not be null.options - The options to use for deserialization, may be null to use the default values.null.IOException - If the model could not be deserialized.ModelParseException - If the input format could not be parsed.public org.apache.maven.api.model.Model read(InputStream input, Map<String,?> options) throws IOException
ModelReaderread in interface ModelReaderinput - The stream to deserialize the model from, must not be null.options - The options to use for deserialization, may be null to use the default values.null.IOException - If the model could not be deserialized.ModelParseException - If the input format could not be parsed.Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.