org.apache.felix.framework
Class ModuleImpl

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

public class ModuleImpl
extends 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, Map configMap, 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, Bundle bundle, String id, Map headerMap, Content content, URLStreamHandler streamHandler, String[] bootPkgs, boolean[] bootPkgWildcards)
           
 
Method Summary
 void addDependentHost(Module module)
           
 void addDependentImporter(Module module)
           
 void addDependentRequirer(Module module)
           
 void attachFragments( fragments)
           
 void close()
           
 Bundle getBundle()
           
  getCapabilities()
           
 Class getClassByDelegation(String name)
           
 Content getContent()
           
 int getDeclaredActivationPolicy()
           
  getDependentHosts()
           
  getDependentImporters()
           
  getDependentRequirers()
           
  getDependents()
           
  getDynamicRequirements()
           
 URL getEntry(String name)
           
  getFragments()
           
 Map getHeaders()
           
 String getId()
           
 InputStream getInputStream(int index, String urlPath)
           
 URL getLocalURL(int index, String urlPath)
           
 String getManifestVersion()
           
  getNativeLibraries()
           
  getRequirements()
           
 URL getResourceByDelegation(String name)
           
 Enumeration getResourcesByDelegation(String name)
           
 Object getSecurityContext()
           
 String getSymbolicName()
           
 Version getVersion()
           
  getWires()
           
 boolean hasInputStream(int index, String urlPath)
           
 boolean isExtension()
           
 boolean isResolved()
           
 void removeDependentHost(Module module)
           
 void removeDependentImporter(Module module)
           
 void removeDependentRequirer(Module module)
           
 void setResolved()
           
 void setSecurityContext(Object securityContext)
           
 void setWires( 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,
                  Map configMap,
                  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:
BundleException

ModuleImpl

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

getHeaders

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

isExtension

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

getSymbolicName

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

getManifestVersion

public String getManifestVersion()

getVersion

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

getCapabilities

public  getCapabilities()
Specified by:
getCapabilities in interface Module

getRequirements

public  getRequirements()
Specified by:
getRequirements in interface Module

getDynamicRequirements

public  getDynamicRequirements()
Specified by:
getDynamicRequirements in interface Module

getNativeLibraries

public  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 String getId()
Specified by:
getId in interface Module

getWires

public  getWires()
Specified by:
getWires in interface Module

setWires

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

getResourceByDelegation

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

getResourcesByDelegation

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

getEntry

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

hasInputStream

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

getInputStream

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

getLocalURL

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

getFragments

public  getFragments()

attachFragments

public void attachFragments( fragments)
                     throws Exception
Throws:
Exception

getDependentHosts

public  getDependentHosts()

addDependentHost

public void addDependentHost(Module module)

removeDependentHost

public void removeDependentHost(Module module)

getDependentImporters

public  getDependentImporters()

addDependentImporter

public void addDependentImporter(Module module)

removeDependentImporter

public void removeDependentImporter(Module module)

getDependentRequirers

public  getDependentRequirers()

addDependentRequirer

public void addDependentRequirer(Module module)

removeDependentRequirer

public void removeDependentRequirer(Module module)

getDependents

public  getDependents()

close

public void close()

setSecurityContext

public void setSecurityContext(Object securityContext)

getSecurityContext

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.