org.jboss.osgi.resolver.v2.spi
Class AbstractEnvironment

java.lang.Object
  extended by org.jboss.osgi.resolver.v2.spi.AbstractEnvironment
All Implemented Interfaces:
XEnvironment, org.osgi.service.resolver.Environment

public abstract class AbstractEnvironment
extends Object
implements XEnvironment

The abstract implementation of a Environment.

Since:
02-Jul-2010
Author:
thomas.diesler@jboss.com

Constructor Summary
AbstractEnvironment()
           
 
Method Summary
 Map<org.osgi.framework.resource.Resource,org.osgi.framework.resource.Wiring> applyResolverResults(Map<org.osgi.framework.resource.Resource,List<org.osgi.framework.resource.Wire>> wiremap)
           
 org.osgi.framework.resource.Wiring applyWiring(org.osgi.framework.resource.Resource res, org.osgi.framework.resource.Wiring wiring)
           
 org.osgi.framework.resource.Wiring createWiring(org.osgi.framework.resource.Resource res, List<org.osgi.framework.resource.Wire> wires)
           
 SortedSet<org.osgi.framework.resource.Capability> findProviders(org.osgi.framework.resource.Requirement req)
           
protected abstract  Comparator<org.osgi.framework.resource.Capability> getComparator()
           
 long getResourceIndex(org.osgi.framework.resource.Resource resource)
           
 Collection<org.osgi.framework.resource.Resource> getResources(String identityType)
           
 org.osgi.framework.resource.Wiring getWiring(org.osgi.framework.resource.Resource resource)
           
 Map<org.osgi.framework.resource.Resource,org.osgi.framework.resource.Wiring> getWirings()
           
 void installResources(org.osgi.framework.resource.Resource... resarr)
           
 boolean isEffective(org.osgi.framework.resource.Requirement req)
           
 void refreshResources(org.osgi.framework.resource.Resource... resarr)
           
 void uninstallResources(org.osgi.framework.resource.Resource... resarr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEnvironment

public AbstractEnvironment()
Method Detail

getComparator

protected abstract Comparator<org.osgi.framework.resource.Capability> getComparator()

installResources

public void installResources(org.osgi.framework.resource.Resource... resarr)
Specified by:
installResources in interface XEnvironment

uninstallResources

public void uninstallResources(org.osgi.framework.resource.Resource... resarr)
Specified by:
uninstallResources in interface XEnvironment

refreshResources

public void refreshResources(org.osgi.framework.resource.Resource... resarr)
Specified by:
refreshResources in interface XEnvironment

getResourceIndex

public long getResourceIndex(org.osgi.framework.resource.Resource resource)
Specified by:
getResourceIndex in interface XEnvironment

getResources

public Collection<org.osgi.framework.resource.Resource> getResources(String identityType)
Specified by:
getResources in interface XEnvironment

findProviders

public SortedSet<org.osgi.framework.resource.Capability> findProviders(org.osgi.framework.resource.Requirement req)
Specified by:
findProviders in interface org.osgi.service.resolver.Environment

applyResolverResults

public Map<org.osgi.framework.resource.Resource,org.osgi.framework.resource.Wiring> applyResolverResults(Map<org.osgi.framework.resource.Resource,List<org.osgi.framework.resource.Wire>> wiremap)
Specified by:
applyResolverResults in interface XEnvironment

createWiring

public org.osgi.framework.resource.Wiring createWiring(org.osgi.framework.resource.Resource res,
                                                       List<org.osgi.framework.resource.Wire> wires)
Specified by:
createWiring in interface XEnvironment

applyWiring

public org.osgi.framework.resource.Wiring applyWiring(org.osgi.framework.resource.Resource res,
                                                      org.osgi.framework.resource.Wiring wiring)
Specified by:
applyWiring in interface XEnvironment

isEffective

public boolean isEffective(org.osgi.framework.resource.Requirement req)
Specified by:
isEffective in interface org.osgi.service.resolver.Environment

getWiring

public org.osgi.framework.resource.Wiring getWiring(org.osgi.framework.resource.Resource resource)
Specified by:
getWiring in interface XEnvironment

getWirings

public Map<org.osgi.framework.resource.Resource,org.osgi.framework.resource.Wiring> getWirings()
Specified by:
getWirings in interface org.osgi.service.resolver.Environment


Copyright © 2012. All Rights Reserved.