org.apache.aries.application.resolver.noop.impl
Class NoOpResolver
java.lang.Object
org.apache.aries.application.resolver.noop.impl.NoOpResolver
- All Implemented Interfaces:
- AriesApplicationResolver
public class NoOpResolver
- extends Object
- implements 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoOpResolver
public NoOpResolver()
resolve
public Set<BundleInfo> resolve(AriesApplication app,
ResolveConstraint... constraints)
- Specified by:
resolve in interface AriesApplicationResolver
getBundleInfo
public BundleInfo getBundleInfo(String bundleSymbolicName,
org.osgi.framework.Version bundleVersion)
- Specified by:
getBundleInfo in interface AriesApplicationResolver
resolve
public Collection<ModelledResource> resolve(String appName,
String appVersion,
Collection<ModelledResource> byValueBundles,
Collection<Content> inputs)
throws ResolverException
- Specified by:
resolve in interface AriesApplicationResolver
- Throws:
ResolverException
resolve
public Collection<ModelledResource> resolve(String appName,
String appVersion,
Collection<ModelledResource> byValueBundles,
Collection<Content> inputs,
PlatformRepository platformRepository)
throws ResolverException
- Specified by:
resolve in interface AriesApplicationResolver
- Throws:
ResolverException
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.