Class InstallContextImpl
- java.lang.Object
-
- org.apache.jackrabbit.vault.packaging.impl.InstallContextImpl
-
- All Implemented Interfaces:
InstallContext
public class InstallContextImpl extends Object implements InstallContext
InstallContextImpl...
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.jackrabbit.vault.packaging.InstallContext
InstallContext.Phase
-
-
Constructor Summary
Constructors Constructor Description InstallContextImpl(Session session, String importRootPath, VaultPackage pack, Importer importer, InstallHookProcessor hooks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InstallHookProcessorgetHooks()protected ImportergetImporter()protected StringgetImportRootPath()ImportOptionsgetOptions()Returns the import options that are used to install the packageVaultPackagegetPackage()Returns the package that is currently installedInstallContext.PhasegetPhase()Returns the current installation phaseSessiongetSession()Returns the session that is used to install the packageprotected voidsetPhase(InstallContext.Phase phase)
-
-
-
Constructor Detail
-
InstallContextImpl
public InstallContextImpl(Session session, String importRootPath, VaultPackage pack, Importer importer, InstallHookProcessor hooks) throws RepositoryException
- Throws:
RepositoryException
-
-
Method Detail
-
getSession
public Session getSession()
Description copied from interface:InstallContextReturns the session that is used to install the package- Specified by:
getSessionin interfaceInstallContext- Returns:
- the session
-
getPackage
public VaultPackage getPackage()
Description copied from interface:InstallContextReturns the package that is currently installed- Specified by:
getPackagein interfaceInstallContext- Returns:
- the vault package
-
getOptions
public ImportOptions getOptions()
Description copied from interface:InstallContextReturns the import options that are used to install the package- Specified by:
getOptionsin interfaceInstallContext- Returns:
- the import options
-
getPhase
public InstallContext.Phase getPhase()
Description copied from interface:InstallContextReturns the current installation phase- Specified by:
getPhasein interfaceInstallContext- Returns:
- the phase
-
setPhase
protected void setPhase(InstallContext.Phase phase)
-
getImporter
protected Importer getImporter()
-
getHooks
protected InstallHookProcessor getHooks()
-
getImportRootPath
protected String getImportRootPath()
-
-