org.jboss.osgi.resolver.spi
Class AbstractBundleWiring
java.lang.Object
org.jboss.osgi.resolver.spi.AbstractWiring
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
| Fields inherited from interface org.osgi.framework.wiring.BundleWiring |
FINDENTRIES_RECURSE, LISTRESOURCES_LOCAL, LISTRESOURCES_RECURSE |
| Methods inherited from interface org.osgi.framework.wiring.BundleWiring |
getProvidedResourceWires, getRequiredResourceWires, getResourceCapabilities, getResourceRequirements |
AbstractBundleWiring
public AbstractBundleWiring(XBundleRevision brev,
List<org.osgi.resource.Wire> required,
List<org.osgi.resource.Wire> provided)
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.