Package de.hybris.ant.taskdefs
Class AbstractAntPerformable
- java.lang.Object
-
- de.hybris.ant.taskdefs.AbstractAntPerformable
-
- All Implemented Interfaces:
AntPerformable
- Direct Known Subclasses:
ClearLockAntPerformable
,CronJobAntPerformableImpl
,InitPlatformAntPerformableImpl
public abstract class AbstractAntPerformable extends java.lang.Object implements AntPerformable
Abstraction for ant performables for administration issues.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
tenantId
-
Constructor Summary
Constructors Constructor Description AbstractAntPerformable(java.lang.String tenant)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
afterPerform()
boolean
beforePerform()
checks if sufficient attributes provided have alsovoid
doPerform()
protected boolean
failOnError()
protected org.springframework.context.ApplicationContext
getApplicationContext()
protected abstract void
performImpl()
boolean
validate()
protected void
validateTenant(java.lang.String tenant)
validates tenant name correctness
-
-
-
Method Detail
-
validateTenant
protected void validateTenant(java.lang.String tenant)
validates tenant name correctness
-
failOnError
protected boolean failOnError()
-
performImpl
protected abstract void performImpl() throws java.lang.Exception
- Throws:
java.lang.Exception
-
doPerform
public final void doPerform() throws java.lang.Exception
- Specified by:
doPerform
in interfaceAntPerformable
- Throws:
java.lang.Exception
-
validate
public boolean validate()
- Specified by:
validate
in interfaceAntPerformable
-
beforePerform
public boolean beforePerform()
checks if sufficient attributes provided have also- Specified by:
beforePerform
in interfaceAntPerformable
-
afterPerform
public void afterPerform()
- Specified by:
afterPerform
in interfaceAntPerformable
-
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext()
-
-