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

Field Summary
 
Fields inherited from interface org.jboss.osgi.resolver.XEnvironment
ALL_IDENTITY_TYPES
 
Constructor Summary
AbstractEnvironment()
           
 
Method Summary
 org.osgi.resource.Wiring createWiring(XResource res, List<org.osgi.resource.Wire> required, List<org.osgi.resource.Wire> provided)
           
 List<org.osgi.resource.Capability> findProviders(org.osgi.resource.Requirement req)
           
 Collection<XResource> getResources(String... types)
           
 Map<org.osgi.resource.Resource,org.osgi.resource.Wiring> getWirings()
           
 void installResources(XResource... resources)
           
 Long nextResourceIdentifier(Long value, String symbolicName)
           
 void refreshResources(XResource... resources)
           
 void uninstallResources(XResource... resources)
           
 Map<org.osgi.resource.Resource,org.osgi.resource.Wiring> updateWiring(Map<org.osgi.resource.Resource,List<org.osgi.resource.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

nextResourceIdentifier

public Long nextResourceIdentifier(Long value,
                                   String symbolicName)
Specified by:
nextResourceIdentifier in interface XEnvironment

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(String... types)
Specified by:
getResources in interface XEnvironment

findProviders

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

updateWiring

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

createWiring

public org.osgi.resource.Wiring createWiring(XResource res,
                                             List<org.osgi.resource.Wire> required,
                                             List<org.osgi.resource.Wire> provided)
Specified by:
createWiring in interface XEnvironment

getWirings

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


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