org.apache.felix.framework.searchpolicy
Class ModuleImpl

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

public class ModuleImpl
extends Object
implements IModule


Nested Class Summary
 class ModuleImpl.ModuleClassLoader
           
 
Constructor Summary
ModuleImpl(Logger logger, Map configMap, Felix.FelixResolver resolver, Bundle bundle, String id, Map headerMap, IContent content)
           
 
Method Summary
 void addDependentHost(IModule module)
           
 void addDependentImporter(IModule module)
           
 void addDependentRequirer(IModule module)
           
 void attachFragments(IModule[] fragments)
           
 void close()
           
 Bundle getBundle()
           
 ICapability[] getCapabilities()
           
 Class getClassByDelegation(String name)
           
 IContent getContent()
           
 IModule[] getDependentHosts()
           
 IModule[] getDependentImporters()
           
 IModule[] getDependentRequirers()
           
 IModule[] getDependents()
           
 IRequirement[] getDynamicRequirements()
           
 URL getEntry(String name)
           
 IModule[] getFragments()
           
 Map getHeaders()
           
 String getId()
           
 InputStream getInputStream(int index, String urlPath)
           
 String getManifestVersion()
           
 R4Library[] getNativeLibraries()
           
 IRequirement[] getRequirements()
           
 URL getResourceByDelegation(String name)
           
 Enumeration getResourcesByDelegation(String name)
           
 Object getSecurityContext()
           
 String getSymbolicName()
           
 IURLPolicy getURLPolicy()
           
 Version getVersion()
           
 IWire[] getWires()
           
 boolean hasInputStream(int index, String urlPath)
           
 boolean isResolved()
           
 void removeDependentHost(IModule module)
           
 void removeDependentImporter(IModule module)
           
 void removeDependentRequirer(IModule module)
           
 void setResolved()
           
 void setSecurityContext(Object securityContext)
           
 void setURLPolicy(IURLPolicy urlPolicy)
           
 void setWires(IWire[] 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,
                  Felix.FelixResolver resolver,
                  Bundle bundle,
                  String id,
                  Map headerMap,
                  IContent content)
           throws BundleException
Throws:
BundleException
Method Detail

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.