public interface PackageManager extends MartiniPackageProvider
MartiniPackage
object.Modifier and Type | Method and Description |
---|---|
void |
destroy() |
MartiniPackage |
loadPackage(String name,
boolean resolveParent)
Load a Martini Package.
|
void |
startPackage(String name,
boolean resolveParent)
Start a Martini Package
|
void |
stopPackage(String name,
boolean resolveChild)
Stop a Martini Package
|
void |
unloadPackage(String name,
boolean resolveChild)
Unload Martini Package
|
void |
writePackageExceptions(String name,
OutputStream stream,
io.toro.martini.ipackage.PackageExceptionsWriteMode writeMode) |
getLoadedPackage, getLoadedPackages, getLoadedPackages, getPackage, getPackages, getPackages
MartiniPackage loadPackage(String name, boolean resolveParent) throws io.toro.martini.ipackage.exception.PackageLifeCycleException, io.toro.martini.ipackage.exception.PackageNotFoundException
name
- the name of the Package to search forresolveParent
- whether to also load the dependencies of the package name
MartiniPackage
that were constructed by this methodio.toro.martini.ipackage.exception.PackageLifeCycleException
- if there is a problem in loading the packageio.toro.martini.ipackage.exception.PackageNotFoundException
- if there is no Package by the supplied namevoid unloadPackage(String name, boolean resolveChild) throws io.toro.martini.ipackage.exception.PackageLifeCycleException
name
- the package to unloadresolveChild
- whether to also unload the packages that depends on the package name
io.toro.martini.ipackage.exception.PackageLifeCycleException
- if there is a problem in unloading the packagevoid startPackage(String name, boolean resolveParent) throws io.toro.martini.ipackage.exception.PackageLifeCycleException
name
- the package to startresolveParent
- whether to also load or start the dependencies of the package name
based on the
requiredState
provided in the PackageDependency
of the packageio.toro.martini.ipackage.exception.PackageLifeCycleException
- if there is a problem in starting the packageio.toro.martini.ipackage.exception.PackageIllegalStateException
- if the MartiniPackage
is not loaded.void stopPackage(String name, boolean resolveChild) throws io.toro.martini.ipackage.exception.PackageLifeCycleException
name
- the package to StopresolveChild
- whether to also stop the packages that depends on the package name
io.toro.martini.ipackage.exception.PackageLifeCycleException
- if there is a problem in stop the packagevoid writePackageExceptions(String name, OutputStream stream, io.toro.martini.ipackage.PackageExceptionsWriteMode writeMode)
void destroy()
Copyright © 2023. All rights reserved.