org.apache.felix.framework
Class ModuleImpl
java.lang.Object
org.apache.felix.framework.ModuleImpl
- All Implemented Interfaces:
- Module
public class ModuleImpl
- extends java.lang.Object
- implements Module
|
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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.