org.jvnet.hk2.osgiadapter
Class OSGiModuleDefinition

java.lang.Object
  extended by org.jvnet.hk2.osgiadapter.OSGiModuleDefinition
All Implemented Interfaces:
com.sun.enterprise.module.ModuleDefinition, java.io.Serializable

public class OSGiModuleDefinition
extends java.lang.Object
implements com.sun.enterprise.module.ModuleDefinition, java.io.Serializable

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

Constructor Summary
OSGiModuleDefinition(org.osgi.framework.Bundle b)
           
OSGiModuleDefinition(java.io.File jar)
           
OSGiModuleDefinition(com.sun.enterprise.module.common_impl.Jar jarFile, java.net.URI location)
           
 
Method Summary
 com.sun.enterprise.module.ModuleDependency[] getDependencies()
           
 java.lang.String getImportPolicyClassName()
           
 java.lang.String getLifecyclePolicyClassName()
           
 java.net.URI[] getLocations()
           
 java.util.jar.Manifest getManifest()
           
 com.sun.enterprise.module.ModuleMetadata getMetadata()
           
 java.lang.String getName()
           
 java.lang.String[] getPublicInterfaces()
           
 java.lang.String getVersion()
           
 java.lang.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(java.io.File jar)
                     throws java.io.IOException
Throws:
java.io.IOException

OSGiModuleDefinition

public OSGiModuleDefinition(com.sun.enterprise.module.common_impl.Jar jarFile,
                            java.net.URI location)
                     throws java.io.IOException
Throws:
java.io.IOException

OSGiModuleDefinition

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

getName

public java.lang.String getName()
Specified by:
getName in interface com.sun.enterprise.module.ModuleDefinition

getPublicInterfaces

public java.lang.String[] getPublicInterfaces()
Specified by:
getPublicInterfaces in interface com.sun.enterprise.module.ModuleDefinition

getDependencies

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

getLocations

public java.net.URI[] getLocations()
Specified by:
getLocations in interface com.sun.enterprise.module.ModuleDefinition

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface com.sun.enterprise.module.ModuleDefinition

getImportPolicyClassName

public java.lang.String getImportPolicyClassName()
Specified by:
getImportPolicyClassName in interface com.sun.enterprise.module.ModuleDefinition

getLifecyclePolicyClassName

public java.lang.String getLifecyclePolicyClassName()
Specified by:
getLifecyclePolicyClassName in interface com.sun.enterprise.module.ModuleDefinition

getManifest

public java.util.jar.Manifest getManifest()
Specified by:
getManifest in interface com.sun.enterprise.module.ModuleDefinition

getMetadata

public com.sun.enterprise.module.ModuleMetadata getMetadata()
Specified by:
getMetadata in interface com.sun.enterprise.module.ModuleDefinition

toString

public java.lang.String toString()
Assists debugging.

Overrides:
toString in class java.lang.Object


Copyright © 2011 Oracle Corporation. All Rights Reserved.