org.apache.felix.framework
Class ModuleImpl

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

public class ModuleImpl
extends 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, String id, 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, Map configMap, Felix.FelixResolver resolver, org.osgi.framework.Bundle bundle, String id, Map headerMap, IContent content, URLStreamHandler streamHandler, 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()
           
 Class getClassByDelegation(String name)
           
 IContent getContent()
           
 int getDeclaredActivationPolicy()
           
 IModule[] getDependentHosts()
           
 IModule[] getDependentImporters()
           
 IModule[] getDependentRequirers()
           
 IModule[] getDependents()
           
 IRequirement[] getDynamicRequirements()
           
 URL getEntry(String name)
           
 IModule[] getFragments()
           
 Map getHeaders()
           
 String getId()
           
 InputStream getInputStream(int index, String urlPath)
           
 String getManifestVersion()
           
 R4Library[] getNativeLibraries()
           
 IRequirement[] getRequirements()
           
 URL getResourceByDelegation(String name)
           
 Enumeration getResourcesByDelegation(String name)
           
 Object getSecurityContext()
           
 String getSymbolicName()
           
 org.osgi.framework.Version getVersion()
           
 IWire[] getWires()
           
 boolean hasInputStream(int index, String urlPath)
           
 boolean isExtension()
           
 boolean isResolved()
           
 void removeDependentHost(IModule module)
           
 void removeDependentImporter(IModule module)
           
 void removeDependentRequirer(IModule module)
           
 void setResolved()
           
 void setSecurityContext(Object securityContext)
           
 void setWires(IWire[] wires)
           
 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,
                  String id,
                  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,
                  Map configMap,
                  Felix.FelixResolver resolver,
                  org.osgi.framework.Bundle bundle,
                  String id,
                  Map headerMap,
                  IContent content,
                  URLStreamHandler streamHandler,
                  String[] bootPkgs,
                  boolean[] bootPkgWildcards)
           throws org.osgi.framework.BundleException
Throws:
org.osgi.framework.BundleException
Method Detail

getHeaders

public Map getHeaders()
Specified by:
getHeaders in interface IModule

isExtension

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

getSymbolicName

public String getSymbolicName()
Specified by:
getSymbolicName in interface IModule

getManifestVersion

public 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 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 Class getClassByDelegation(String name)
                           throws ClassNotFoundException
Specified by:
getClassByDelegation in interface IModule
Throws:
ClassNotFoundException

getResourceByDelegation

public URL getResourceByDelegation(String name)
Specified by:
getResourceByDelegation in interface IModule

getResourcesByDelegation

public Enumeration getResourcesByDelegation(String name)
Specified by:
getResourcesByDelegation in interface IModule

getEntry

public URL getEntry(String name)
Specified by:
getEntry in interface IModule

hasInputStream

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

getInputStream

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

getFragments

public IModule[] getFragments()

attachFragments

public void attachFragments(IModule[] fragments)
                     throws Exception
Throws:
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(Object securityContext)
Specified by:
setSecurityContext in interface IModule

getSecurityContext

public Object getSecurityContext()
Specified by:
getSecurityContext in interface IModule

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.