org.apache.felix.ipojo.manipulator.manifest
Class FileManifestProvider

java.lang.Object
  extended by org.apache.felix.ipojo.manipulator.manifest.FileManifestProvider
All Implemented Interfaces:
ManifestProvider

public class FileManifestProvider
extends java.lang.Object
implements ManifestProvider

A FileManifestProvider reads a Manifest from the given input File.

Author:
Felix Project Team

Constructor Summary
FileManifestProvider(java.io.File resource)
          Read the manifest from the given input file
 
Method Summary
 java.util.jar.Manifest getManifest()
          Returns the original bundle's Manifest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileManifestProvider

public FileManifestProvider(java.io.File resource)
                     throws java.io.IOException
Read the manifest from the given input file

Parameters:
resource - File pointing to a Manifest file
Throws:
java.io.IOException - if there is an error during File IO operations or if the file is not a valid manifest.
Method Detail

getManifest

public java.util.jar.Manifest getManifest()
Description copied from interface: ManifestProvider
Returns the original bundle's Manifest.

Specified by:
getManifest in interface ManifestProvider
Returns:
Manifest of the bundle


Copyright © 2006-2012 The Apache Software Foundation. All Rights Reserved.