public class FileMetadataProvider extends java.lang.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(java.io.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 |
---|---|
java.util.List<org.apache.felix.ipojo.metadata.Element> |
getMetadatas()
Gather all the metadata.
|
void |
setValidateUsingLocalSchemas(boolean validateUsingLocalSchemas) |
public FileMetadataProvider(java.io.File source, Reporter reporter)
source
- source of the metadatareporter
- feedback reporterpublic void setValidateUsingLocalSchemas(boolean validateUsingLocalSchemas)
public java.util.List<org.apache.felix.ipojo.metadata.Element> getMetadatas() throws java.io.IOException
MetadataProvider
getMetadatas
in interface MetadataProvider
java.io.IOException
- if something wet wrong during gathering.Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.