org.apache.felix.framework.searchpolicy
Class ModuleImpl
java.lang.Object
org.apache.felix.framework.searchpolicy.ModuleImpl
- All Implemented Interfaces:
- IModule
public class ModuleImpl
- extends Object
- implements IModule
ModuleImpl
public ModuleImpl(Logger logger,
Map configMap,
Felix.FelixResolver resolver,
Bundle bundle,
String id,
Map headerMap,
IContent content)
throws BundleException
- Throws:
BundleException
getHeaders
public Map getHeaders()
- Specified by:
getHeaders
in interface IModule
getSymbolicName
public String getSymbolicName()
- Specified by:
getSymbolicName
in interface IModule
getManifestVersion
public String getManifestVersion()
getVersion
public Version getVersion()
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
getBundle
public Bundle getBundle()
- Specified by:
getBundle
in interface IModule
getId
public 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 Class getClassByDelegation(String name)
throws ClassNotFoundException
- Specified by:
getClassByDelegation
in interface IModule
- Throws:
ClassNotFoundException
getResourceByDelegation
public URL getResourceByDelegation(String name)
- Specified by:
getResourceByDelegation
in interface IModule
getResourcesByDelegation
public Enumeration getResourcesByDelegation(String name)
- Specified by:
getResourcesByDelegation
in interface IModule
getEntry
public URL getEntry(String name)
- Specified by:
getEntry
in interface IModule
hasInputStream
public boolean hasInputStream(int index,
String urlPath)
- Specified by:
hasInputStream
in interface IModule
getInputStream
public InputStream getInputStream(int index,
String urlPath)
throws IOException
- Specified by:
getInputStream
in interface IModule
- Throws:
IOException
getFragments
public IModule[] getFragments()
attachFragments
public void attachFragments(IModule[] fragments)
throws Exception
- Throws:
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()
setURLPolicy
public void setURLPolicy(IURLPolicy urlPolicy)
- Specified by:
setURLPolicy
in interface IModule
getURLPolicy
public IURLPolicy getURLPolicy()
- Specified by:
getURLPolicy
in interface IModule
setSecurityContext
public void setSecurityContext(Object securityContext)
- Specified by:
setSecurityContext
in interface IModule
getSecurityContext
public Object getSecurityContext()
- Specified by:
getSecurityContext
in interface IModule
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.