org.apache.felix.framework
Class ModuleImpl

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

public class ModuleImpl
extends java.lang.Object
implements Module


Nested Class Summary
 class ModuleImpl.ModuleClassLoader
           
 class ModuleImpl.ModuleClassLoaderJava5
           
 
Field Summary
 
Fields inherited from interface org.apache.felix.framework.resolver.Module
EAGER_ACTIVATION, LAZY_ACTIVATION
 
Constructor Summary
ModuleImpl(Logger logger, java.util.Map configMap, 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, Bundle bundle, java.lang.String id, java.util.Map headerMap, Content content, java.net.URLStreamHandler streamHandler, java.lang.String[] bootPkgs, boolean[] bootPkgWildcards)
           
 
Method Summary
 void addDependentHost(Module module)
           
 void addDependentImporter(Module module)
           
 void addDependentRequirer(Module module)
           
 void attachFragments(java.util.List<Module> fragments)
           
 void close()
           
 Bundle getBundle()
           
 java.util.List<Capability> getCapabilities()
           
 java.lang.Class getClassByDelegation(java.lang.String name)
           
 Content getContent()
           
 int getDeclaredActivationPolicy()
           
 java.util.List<Module> getDependentHosts()
           
 java.util.List<Module> getDependentImporters()
           
 java.util.List<Module> getDependentRequirers()
           
 java.util.List<Module> getDependents()
           
 java.util.List<Requirement> getDynamicRequirements()
           
 java.net.URL getEntry(java.lang.String name)
           
 java.util.List<Module> getFragments()
           
 java.util.Map getHeaders()
           
 java.lang.String getId()
           
 java.io.InputStream getInputStream(int index, java.lang.String urlPath)
           
 java.net.URL getLocalURL(int index, java.lang.String urlPath)
           
 java.lang.String getManifestVersion()
           
 java.util.List<R4Library> getNativeLibraries()
           
 java.util.List<Requirement> 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()
           
 Version getVersion()
           
 java.util.List<Wire> getWires()
           
 boolean hasInputStream(int index, java.lang.String urlPath)
           
 boolean isExtension()
           
 boolean isResolved()
           
 void removeDependentHost(Module module)
           
 void removeDependentImporter(Module module)
           
 void removeDependentRequirer(Module module)
           
 void setResolved()
           
 void setSecurityContext(java.lang.Object securityContext)
           
 void setWires(java.util.List<Wire> 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,
                  java.util.Map configMap,
                  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:
BundleException

ModuleImpl

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

getHeaders

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

isExtension

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

getSymbolicName

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

getManifestVersion

public java.lang.String getManifestVersion()

getVersion

public Version getVersion()
Specified by:
getVersion in interface Module

getCapabilities

public java.util.List<Capability> getCapabilities()
Specified by:
getCapabilities in interface Module

getRequirements

public java.util.List<Requirement> getRequirements()
Specified by:
getRequirements in interface Module

getDynamicRequirements

public java.util.List<Requirement> getDynamicRequirements()
Specified by:
getDynamicRequirements in interface Module

getNativeLibraries

public java.util.List<R4Library> getNativeLibraries()
Specified by:
getNativeLibraries in interface Module

getDeclaredActivationPolicy

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

getBundle

public Bundle getBundle()
Specified by:
getBundle in interface Module

getId

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

getWires

public java.util.List<Wire> getWires()
Specified by:
getWires in interface Module

setWires

public void setWires(java.util.List<Wire> wires)

isResolved

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

setResolved

public void setResolved()

getContent

public Content getContent()
Specified by:
getContent in interface Module

getClassByDelegation

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

getResourceByDelegation

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

getResourcesByDelegation

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

getEntry

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

hasInputStream

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

getInputStream

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

getLocalURL

public java.net.URL getLocalURL(int index,
                                java.lang.String urlPath)
Specified by:
getLocalURL in interface Module

getFragments

public java.util.List<Module> getFragments()

attachFragments

public void attachFragments(java.util.List<Module> fragments)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getDependentHosts

public java.util.List<Module> getDependentHosts()

addDependentHost

public void addDependentHost(Module module)

removeDependentHost

public void removeDependentHost(Module module)

getDependentImporters

public java.util.List<Module> getDependentImporters()

addDependentImporter

public void addDependentImporter(Module module)

removeDependentImporter

public void removeDependentImporter(Module module)

getDependentRequirers

public java.util.List<Module> getDependentRequirers()

addDependentRequirer

public void addDependentRequirer(Module module)

removeDependentRequirer

public void removeDependentRequirer(Module module)

getDependents

public java.util.List<Module> getDependents()

close

public void close()

setSecurityContext

public void setSecurityContext(java.lang.Object securityContext)

getSecurityContext

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

toString

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


Copyright © 2007-2012 FuseSource, Corp.. All Rights Reserved.