org.jboss.osgi.resolver.spi
Class AbstractBundleWiring

java.lang.Object
  extended by org.jboss.osgi.resolver.spi.AbstractWiring
      extended by org.jboss.osgi.resolver.spi.AbstractBundleWiring
All Implemented Interfaces:
XWiring, org.osgi.framework.BundleReference, org.osgi.framework.wiring.BundleWiring, org.osgi.resource.Wiring

public class AbstractBundleWiring
extends AbstractWiring
implements org.osgi.framework.wiring.BundleWiring

The BundleWiring implementation.

Since:
23-Feb-2012
Author:
thomas.diesler@jboss.com

Field Summary
 
Fields inherited from interface org.osgi.framework.wiring.BundleWiring
FINDENTRIES_RECURSE, LISTRESOURCES_LOCAL, LISTRESOURCES_RECURSE
 
Constructor Summary
AbstractBundleWiring(XBundleRevision brev, List<org.osgi.resource.Wire> required, List<org.osgi.resource.Wire> provided)
           
 
Method Summary
 List<URL> findEntries(String path, String filePattern, int options)
           
 org.osgi.framework.Bundle getBundle()
           
 List<org.osgi.framework.wiring.BundleCapability> getCapabilities(String namespace)
           
 ClassLoader getClassLoader()
           
protected  HostedCapability getHostedCapability(XCapability cap)
           
 List<org.osgi.framework.wiring.BundleWire> getProvidedWires(String namespace)
           
 List<org.osgi.framework.wiring.BundleWire> getRequiredWires(String namespace)
           
 List<org.osgi.framework.wiring.BundleRequirement> getRequirements(String namespace)
           
 XBundleRevision getResource()
           
 XBundleRevision getRevision()
           
 boolean isCurrent()
           
 boolean isInUse()
           
 boolean isInUseForUninstall()
           
 Collection<String> listResources(String path, String filePattern, int options)
           
 
Methods inherited from class org.jboss.osgi.resolver.spi.AbstractWiring
addProvidedWire, addRequiredWire, getProvidedResourceWires, getRequiredResourceWires, getResourceCapabilities, getResourceRequirements, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.osgi.framework.wiring.BundleWiring
getProvidedResourceWires, getRequiredResourceWires, getResourceCapabilities, getResourceRequirements
 

Constructor Detail

AbstractBundleWiring

public AbstractBundleWiring(XBundleRevision brev,
                            List<org.osgi.resource.Wire> required,
                            List<org.osgi.resource.Wire> provided)
Method Detail

getHostedCapability

protected HostedCapability getHostedCapability(XCapability cap)
Overrides:
getHostedCapability in class AbstractWiring

isCurrent

public boolean isCurrent()
Specified by:
isCurrent in interface org.osgi.framework.wiring.BundleWiring

isInUse

public boolean isInUse()
Specified by:
isInUse in interface org.osgi.framework.wiring.BundleWiring

isInUseForUninstall

public boolean isInUseForUninstall()

getCapabilities

public List<org.osgi.framework.wiring.BundleCapability> getCapabilities(String namespace)
Specified by:
getCapabilities in interface org.osgi.framework.wiring.BundleWiring

getRequirements

public List<org.osgi.framework.wiring.BundleRequirement> getRequirements(String namespace)
Specified by:
getRequirements in interface org.osgi.framework.wiring.BundleWiring

getProvidedWires

public List<org.osgi.framework.wiring.BundleWire> getProvidedWires(String namespace)
Specified by:
getProvidedWires in interface org.osgi.framework.wiring.BundleWiring

getRequiredWires

public List<org.osgi.framework.wiring.BundleWire> getRequiredWires(String namespace)
Specified by:
getRequiredWires in interface org.osgi.framework.wiring.BundleWiring

getRevision

public XBundleRevision getRevision()
Specified by:
getRevision in interface org.osgi.framework.wiring.BundleWiring

getResource

public XBundleRevision getResource()
Specified by:
getResource in interface org.osgi.framework.wiring.BundleWiring
Specified by:
getResource in interface org.osgi.resource.Wiring
Overrides:
getResource in class AbstractWiring

getClassLoader

public ClassLoader getClassLoader()
Specified by:
getClassLoader in interface org.osgi.framework.wiring.BundleWiring

findEntries

public List<URL> findEntries(String path,
                             String filePattern,
                             int options)
Specified by:
findEntries in interface org.osgi.framework.wiring.BundleWiring

listResources

public Collection<String> listResources(String path,
                                        String filePattern,
                                        int options)
Specified by:
listResources in interface org.osgi.framework.wiring.BundleWiring

getBundle

public org.osgi.framework.Bundle getBundle()
Specified by:
getBundle in interface org.osgi.framework.BundleReference


Copyright © 2013 JBoss by Red Hat. All Rights Reserved.