public class Patcher extends Object implements JahiaAfterInitializationService, org.springframework.beans.factory.DisposableBean
WEB-INF/var/patches/) for scripts, executes
them and renames the executed files.| Modifier and Type | Field and Description |
|---|---|
static String |
FAILED |
static String |
INSTALLED |
static String |
README |
static String |
SKIPPED |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
executeScripts(org.springframework.core.io.Resource[] scripts,
String lifecyclePhase) |
void |
executeScripts(String lifecyclePhase) |
protected String |
getContent(org.springframework.core.io.Resource r) |
static Patcher |
getInstance() |
String |
getPatchesLookup() |
void |
initAfterAllServicesAreStarted() |
protected void |
rename(org.springframework.core.io.Resource script,
String suffix) |
void |
setInterval(long interval) |
void |
setPatchers(List<PatchExecutor> patchers) |
void |
setPatchesLookup(String patchesLookup) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
public static final String README
public static final String INSTALLED
public static final String FAILED
public static final String SKIPPED
public static Patcher getInstance()
public void executeScripts(String lifecyclePhase)
public void executeScripts(org.springframework.core.io.Resource[] scripts,
String lifecyclePhase)
protected String getContent(org.springframework.core.io.Resource r) throws IOException
IOExceptionprotected void rename(org.springframework.core.io.Resource script,
String suffix)
public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic void initAfterAllServicesAreStarted()
throws JahiaInitializationException
initAfterAllServicesAreStarted in interface JahiaAfterInitializationServiceJahiaInitializationExceptionpublic void setInterval(long interval)
public void setPatchesLookup(String patchesLookup)
public String getPatchesLookup()
public void setServletContext(javax.servlet.ServletContext servletContext)
public void setPatchers(List<PatchExecutor> patchers)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.