Package dev.equo.solstice
Class Solstice
java.lang.Object
dev.equo.solstice.Solstice
Represents a closed universe of OSGi bundles.
-
Method Summary
Modifier and TypeMethodDescriptionbundlesOnClasspathOutOf(Collection<String> symbolicNames) calculateMissingBundles(Set<String> available) calculateMissingPackages(Set<String> available) static SolsticeCreates a Solstice instance by finding all available bundles on the classpath.org.osgi.framework.BundleContextvoidopenAtomos(Map<String, String> props) voidvoidStarts all bundles with the given symbolic name, and all of their transitive dependencies as well.voidstartAllWithLazy(boolean lazyValue) Starts all hydrated manfiests.voidstartWithoutTransitives(String symbolicName) Starts all bundles with the given symbolic name, without starting their transitive dependencies.voidSends warnings to logger, then modifies every manifest to resolve all these warnings.voidwarnAndModifyManifestsToFix(org.slf4j.Logger logger)
-
Method Details
-
findBundlesOnClasspath
Creates a Solstice instance by finding all available bundles on the classpath. -
bundlesOnClasspathOutOf
-
bySymbolicName
-
byExportedPackage
-
calculateMissingBundles
-
calculateMissingPackages
-
warnAndModifyManifestsToFix
public void warnAndModifyManifestsToFix()Sends warnings to logger, then modifies every manifest to resolve all these warnings.- multiple bundles with same symbolic name (resolved by first one on the classpath, since
that's what
Class.forNamewill do) - multiple bundles which export the same package (resolved by first one on the classpath,
since that's what
Class.forNamewill do) - required bundle which is not present (resolved by removing requirement from the SolsticeManifest)
- imported package which is not present (resolved by removing import from the SolsticeManifest)
- multiple bundles with same symbolic name (resolved by first one on the classpath, since
that's what
-
warnAndModifyManifestsToFix
public void warnAndModifyManifestsToFix(org.slf4j.Logger logger) -
openAtomos
- Throws:
org.osgi.framework.BundleException
-
openShim
-
getContext
public org.osgi.framework.BundleContext getContext() -
startAllWithLazy
public void startAllWithLazy(boolean lazyValue) Starts all hydrated manfiests. -
start
Starts all bundles with the given symbolic name, and all of their transitive dependencies as well. -
startWithoutTransitives
Starts all bundles with the given symbolic name, without starting their transitive dependencies.
-