public class FileMetadataProvider extends Object implements MetadataProvider
FileMetadataProvider
is responsible of loading all the .xml files in the given directory.
It also accepts a direct reference to a metadata.xml file.Constructor and Description |
---|
FileMetadataProvider(File source,
Reporter reporter)
Constructs a metadata provider using the given source File (directory
or file) to load iPOJO metadata.
|
Modifier and Type | Method and Description |
---|---|
List<org.apache.felix.ipojo.metadata.Element> |
getMetadatas()
Gather all the metadata.
|
void |
setValidateUsingLocalSchemas(boolean validateUsingLocalSchemas) |
public void setValidateUsingLocalSchemas(boolean validateUsingLocalSchemas)
public List<org.apache.felix.ipojo.metadata.Element> getMetadatas() throws IOException
MetadataProvider
getMetadatas
in interface MetadataProvider
IOException
- if something wet wrong during gathering.Copyright © 2006–2015 The Apache Software Foundation. All rights reserved.