org.apache.felix.framework
Class ModuleImpl

java.lang.Object
  extended by org.apache.felix.framework.ModuleImpl
All Implemented Interfaces:
IModule

public class ModuleImpl
extends java.lang.Object
implements IModule


Nested Class Summary
 class ModuleImpl.ModuleClassLoader
           
 
Field Summary
 
Fields inherited from interface org.apache.felix.moduleloader.IModule
EAGER_ACTIVATION, LAZY_ACTIVATION
 
Constructor Summary
ModuleImpl(Logger logger, org.osgi.framework.Bundle bundle, java.lang.String id, java.lang.String[] bootPkgs, boolean[] bootPkgWildcards)
          This constructor is used by the extension manager, since it needs a constructor that does not throw an exception.
ModuleImpl(Logger logger, java.util.Map configMap, Felix.FelixResolver resolver, org.osgi.framework.Bundle bundle, java.lang.String id, java.util.Map headerMap, IContent content, java.net.URLStreamHandler streamHandler, java.lang.String[] bootPkgs, boolean[] bootPkgWildcards)
           
 
Method Summary
 void addDependentHost(IModule module)
           
 void addDependentImporter(IModule module)
           
 void addDependentRequirer(IModule module)
           
 void attachFragments(IModule[] fragments)
           
 void close()
           
 org.osgi.framework.Bundle getBundle()
           
 ICapability[] getCapabilities()
           
 java.lang.Class getClassByDelegation(java.lang.String name)
           
 IContent getContent()
           
 int getDeclaredActivationPolicy()
           
 IModule[] getDependentHosts()
           
 IModule[] getDependentImporters()
           
 IModule[] getDependentRequirers()
           
 IModule[] getDependents()
           
 IRequirement[] getDynamicRequirements()
           
 java.net.URL getEntry(java.lang.String name)
           
 IModule[] getFragments()
           
 java.util.Map getHeaders()
           
 java.lang.String getId()
           
 java.io.InputStream getInputStream(int index, java.lang.String urlPath)
           
 java.lang.String getManifestVersion()
           
 R4Library[] getNativeLibraries()
           
 IRequirement[] getRequirements()
           
 java.net.URL getResourceByDelegation(java.lang.String name)
           
 java.util.Enumeration getResourcesByDelegation(java.lang.String name)
           
 java.lang.Object getSecurityContext()
           
 java.lang.String getSymbolicName()
           
 org.osgi.framework.Version getVersion()
           
 IWire[] getWires()
           
 boolean hasInputStream(int index, java.lang.String urlPath)
           
 boolean isExtension()
           
 boolean isResolved()
           
 void removeDependentHost(IModule module)
           
 void removeDependentImporter(IModule module)
           
 void removeDependentRequirer(IModule module)
           
 void setResolved()
           
 void setSecurityContext(java.lang.Object securityContext)
           
 void setWires(IWire[] wires)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModuleImpl

public ModuleImpl(Logger logger,
                  org.osgi.framework.Bundle bundle,
                  java.lang.String id,
                  java.lang.String[] bootPkgs,
                  boolean[] bootPkgWildcards)
This constructor is used by the extension manager, since it needs a constructor that does not throw an exception.

Parameters:
logger -
bundle -
id -
bootPkgs -
bootPkgWildcards -
Throws:
org.osgi.framework.BundleException

ModuleImpl

public ModuleImpl(Logger logger,
                  java.util.Map configMap,
                  Felix.FelixResolver resolver,
                  org.osgi.framework.Bundle bundle,
                  java.lang.String id,
                  java.util.Map headerMap,
                  IContent content,
                  java.net.URLStreamHandler streamHandler,
                  java.lang.String[] bootPkgs,
                  boolean[] bootPkgWildcards)
           throws org.osgi.framework.BundleException
Throws:
org.osgi.framework.BundleException
Method Detail

getHeaders

public java.util.Map getHeaders()
Specified by:
getHeaders in interface IModule

isExtension

public boolean isExtension()
Specified by:
isExtension in interface IModule

getSymbolicName

public java.lang.String getSymbolicName()
Specified by:
getSymbolicName in interface IModule

getManifestVersion

public java.lang.String getManifestVersion()

getVersion

public org.osgi.framework.Version getVersion()
Specified by:
getVersion in interface IModule

getCapabilities

public ICapability[] getCapabilities()
Specified by:
getCapabilities in interface IModule

getRequirements

public IRequirement[] getRequirements()
Specified by:
getRequirements in interface IModule

getDynamicRequirements

public IRequirement[] getDynamicRequirements()
Specified by:
getDynamicRequirements in interface IModule

getNativeLibraries

public R4Library[] getNativeLibraries()
Specified by:
getNativeLibraries in interface IModule

getDeclaredActivationPolicy

public int getDeclaredActivationPolicy()
Specified by:
getDeclaredActivationPolicy in interface IModule

getBundle

public org.osgi.framework.Bundle getBundle()
Specified by:
getBundle in interface IModule

getId

public java.lang.String getId()
Specified by:
getId in interface IModule

getWires

public IWire[] getWires()
Specified by:
getWires in interface IModule

setWires

public void setWires(IWire[] wires)

isResolved

public boolean isResolved()
Specified by:
isResolved in interface IModule

setResolved

public void setResolved()

getContent

public IContent getContent()
Specified by:
getContent in interface IModule

getClassByDelegation

public java.lang.Class getClassByDelegation(java.lang.String name)
                                     throws java.lang.ClassNotFoundException
Specified by:
getClassByDelegation in interface IModule
Throws:
java.lang.ClassNotFoundException

getResourceByDelegation

public java.net.URL getResourceByDelegation(java.lang.String name)
Specified by:
getResourceByDelegation in interface IModule

getResourcesByDelegation

public java.util.Enumeration getResourcesByDelegation(java.lang.String name)
Specified by:
getResourcesByDelegation in interface IModule

getEntry

public java.net.URL getEntry(java.lang.String name)
Specified by:
getEntry in interface IModule

hasInputStream

public boolean hasInputStream(int index,
                              java.lang.String urlPath)
Specified by:
hasInputStream in interface IModule

getInputStream

public java.io.InputStream getInputStream(int index,
                                          java.lang.String urlPath)
                                   throws java.io.IOException
Specified by:
getInputStream in interface IModule
Throws:
java.io.IOException

getFragments

public IModule[] getFragments()

attachFragments

public void attachFragments(IModule[] fragments)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getDependentHosts

public IModule[] getDependentHosts()

addDependentHost

public void addDependentHost(IModule module)

removeDependentHost

public void removeDependentHost(IModule module)

getDependentImporters

public IModule[] getDependentImporters()

addDependentImporter

public void addDependentImporter(IModule module)

removeDependentImporter

public void removeDependentImporter(IModule module)

getDependentRequirers

public IModule[] getDependentRequirers()

addDependentRequirer

public void addDependentRequirer(IModule module)

removeDependentRequirer

public void removeDependentRequirer(IModule module)

getDependents

public IModule[] getDependents()

close

public void close()

setSecurityContext

public void setSecurityContext(java.lang.Object securityContext)
Specified by:
setSecurityContext in interface IModule

getSecurityContext

public java.lang.Object getSecurityContext()
Specified by:
getSecurityContext in interface IModule

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.