org.apache.aries.application.resolver.noop.impl
Class NoOpResolver

java.lang.Object
  extended by org.apache.aries.application.resolver.noop.impl.NoOpResolver
All Implemented Interfaces:
org.apache.aries.application.management.spi.resolve.AriesApplicationResolver

public class NoOpResolver
extends Object
implements org.apache.aries.application.management.spi.resolve.AriesApplicationResolver

AriesApplicationManager requires that there be at least one AriesApplicationResolver service present. This class provides a null implementation: it simply returns the bundles that it was provided with - enough to permit the testing of Aries applications that have no external dependencies. It is not intended to be used in a production environment, as the implementation of the AriesApplicationResolver just returns the bundles included in the application irrespective of what is specified in application.mf.


Constructor Summary
NoOpResolver()
           
 
Method Summary
 org.apache.aries.application.management.BundleInfo getBundleInfo(String bundleSymbolicName, org.osgi.framework.Version bundleVersion)
           
 Set<org.apache.aries.application.management.BundleInfo> resolve(org.apache.aries.application.management.AriesApplication app, org.apache.aries.application.management.ResolveConstraint... constraints)
           
 Collection<org.apache.aries.application.modelling.ModelledResource> resolve(String appName, String appVersion, Collection<org.apache.aries.application.modelling.ModelledResource> byValueBundles, Collection<org.apache.aries.application.Content> inputs)
           
 Collection<org.apache.aries.application.modelling.ModelledResource> resolveInIsolation(String appName, String appVersion, Collection<org.apache.aries.application.modelling.ModelledResource> byValueBundles, Collection<org.apache.aries.application.Content> inputs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpResolver

public NoOpResolver()
Method Detail

resolve

public Set<org.apache.aries.application.management.BundleInfo> resolve(org.apache.aries.application.management.AriesApplication app,
                                                                       org.apache.aries.application.management.ResolveConstraint... constraints)
Specified by:
resolve in interface org.apache.aries.application.management.spi.resolve.AriesApplicationResolver

getBundleInfo

public org.apache.aries.application.management.BundleInfo getBundleInfo(String bundleSymbolicName,
                                                                        org.osgi.framework.Version bundleVersion)
Specified by:
getBundleInfo in interface org.apache.aries.application.management.spi.resolve.AriesApplicationResolver

resolve

public Collection<org.apache.aries.application.modelling.ModelledResource> resolve(String appName,
                                                                                   String appVersion,
                                                                                   Collection<org.apache.aries.application.modelling.ModelledResource> byValueBundles,
                                                                                   Collection<org.apache.aries.application.Content> inputs)
                                                                            throws org.apache.aries.application.management.ResolverException
Specified by:
resolve in interface org.apache.aries.application.management.spi.resolve.AriesApplicationResolver
Throws:
org.apache.aries.application.management.ResolverException

resolveInIsolation

public Collection<org.apache.aries.application.modelling.ModelledResource> resolveInIsolation(String appName,
                                                                                              String appVersion,
                                                                                              Collection<org.apache.aries.application.modelling.ModelledResource> byValueBundles,
                                                                                              Collection<org.apache.aries.application.Content> inputs)
                                                                                       throws org.apache.aries.application.management.ResolverException
Specified by:
resolveInIsolation in interface org.apache.aries.application.management.spi.resolve.AriesApplicationResolver
Throws:
org.apache.aries.application.management.ResolverException


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.