org.apache.aries.application
Interface ApplicationMetadataFactory


public interface ApplicationMetadataFactory

Provides various means of generating ApplicationMetadata instances.


Method Summary
 ApplicationMetadata createApplicationMetadata(Manifest man)
          Create the application metadata from the provided Manifest.
 ApplicationMetadata parseApplicationMetadata(InputStream in)
          Parse from the input stream the application manifest.
 

Method Detail

parseApplicationMetadata

ApplicationMetadata parseApplicationMetadata(InputStream in)
                                             throws IOException
Parse from the input stream the application manifest. This method is more lenient than the normal manifest parsing routine and does not limit the manifest to 76 bytes as a line length.

Parameters:
in - the inputstream of the manifest to parse.
Returns:
the parsed application metadata.
Throws:
IOException

createApplicationMetadata

ApplicationMetadata createApplicationMetadata(Manifest man)
Create the application metadata from the provided Manifest. This is provided so application metadata can be created from within the JVM. When reading from a stream the parseApplication method should be used.

Parameters:
man - the manifest to read from
Returns:
the parsed application metadata.


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.