org.jvnet.hk2.osgiadapter
Class OSGiModuleDefinition

java.lang.Object
  extended by org.jvnet.hk2.osgiadapter.OSGiModuleDefinition
All Implemented Interfaces:
ModuleDefinition, Serializable

public class OSGiModuleDefinition
extends Object
implements ModuleDefinition, Serializable

Author:
Sanjeeb.Sahoo@Sun.COM
See Also:
Serialized Form

Constructor Summary
OSGiModuleDefinition(org.osgi.framework.Bundle b)
           
OSGiModuleDefinition(File jar)
           
OSGiModuleDefinition(Jar jarFile, URI location)
           
 
Method Summary
 ModuleDependency[] getDependencies()
           
 String getImportPolicyClassName()
           
 String getLifecyclePolicyClassName()
           
 URI[] getLocations()
           
 Manifest getManifest()
           
 ModuleMetadata getMetadata()
           
 String getName()
           
 String[] getPublicInterfaces()
           
 String getVersion()
           
 String toString()
          Assists debugging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OSGiModuleDefinition

public OSGiModuleDefinition(File jar)
                     throws IOException
Throws:
IOException

OSGiModuleDefinition

public OSGiModuleDefinition(Jar jarFile,
                            URI location)
                     throws IOException
Throws:
IOException

OSGiModuleDefinition

public OSGiModuleDefinition(org.osgi.framework.Bundle b)
                     throws IOException,
                            URISyntaxException
Throws:
IOException
URISyntaxException
Method Detail

getName

public String getName()
Specified by:
getName in interface ModuleDefinition

getPublicInterfaces

public String[] getPublicInterfaces()
Specified by:
getPublicInterfaces in interface ModuleDefinition

getDependencies

public ModuleDependency[] getDependencies()
Specified by:
getDependencies in interface ModuleDefinition
Returns:
List of bundles on which this bundle depends on using Require-Bundle

getLocations

public URI[] getLocations()
Specified by:
getLocations in interface ModuleDefinition

getVersion

public String getVersion()
Specified by:
getVersion in interface ModuleDefinition

getImportPolicyClassName

public String getImportPolicyClassName()
Specified by:
getImportPolicyClassName in interface ModuleDefinition

getLifecyclePolicyClassName

public String getLifecyclePolicyClassName()
Specified by:
getLifecyclePolicyClassName in interface ModuleDefinition

getManifest

public Manifest getManifest()
Specified by:
getManifest in interface ModuleDefinition

getMetadata

public ModuleMetadata getMetadata()
Specified by:
getMetadata in interface ModuleDefinition

toString

public String toString()
Assists debugging.

Overrides:
toString in class Object


Copyright © 2011 Oracle Corporation. All Rights Reserved.