org.apache.felix.framework
Class ModuleImpl
java.lang.Object
org.apache.felix.framework.ModuleImpl
- All Implemented Interfaces:
- Module
public class ModuleImpl
- extends Object
- implements Module
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)
|
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
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 © 2011 Apache Software Foundation. All Rights Reserved.