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