org.jboss.osgi.resolver.spi
Class AbstractEnvironment

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

public 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
protected  Wiring createWiring(Resource res, List<Wire> wires)
           
 List<Capability> findProviders(Requirement req)
           
 Long getResourceIndex(XResource res)
           
 Collection<XResource> getResources(Set<String> types)
           
 Map<Resource,Wiring> getWirings()
           
 void installResources(XResource... resources)
           
 void refreshResources(XResource... resources)
           
 void uninstallResources(XResource... resources)
           
 Map<Resource,Wiring> updateWiring(Map<Resource,List<Wire>> wiremap)
           
 
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

installResources

public void installResources(XResource... resources)
Specified by:
installResources in interface XEnvironment

uninstallResources

public void uninstallResources(XResource... resources)
Specified by:
uninstallResources in interface XEnvironment

refreshResources

public void refreshResources(XResource... resources)
Specified by:
refreshResources in interface XEnvironment

getResources

public Collection<XResource> getResources(Set<String> types)
Specified by:
getResources in interface XEnvironment

findProviders

public List<Capability> findProviders(Requirement req)
Specified by:
findProviders in interface XEnvironment

updateWiring

public Map<Resource,Wiring> updateWiring(Map<Resource,List<Wire>> wiremap)
Specified by:
updateWiring in interface XEnvironment

createWiring

protected Wiring createWiring(Resource res,
                              List<Wire> wires)

getResourceIndex

public Long getResourceIndex(XResource res)
Specified by:
getResourceIndex in interface XEnvironment

getWirings

public Map<Resource,Wiring> getWirings()
Specified by:
getWirings in interface XEnvironment


Copyright © 2012. All Rights Reserved.