Package de.hybris.ant.taskdefs
Class AbstractAntPerformable
- java.lang.Object
-
- de.hybris.ant.taskdefs.AbstractAntPerformable
-
- All Implemented Interfaces:
AntPerformable
- Direct Known Subclasses:
CheckPlatformAntPerformableImpl,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.StringtenantId
-
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 voidafterPerform()booleanbeforePerform()checks if sufficient attributes provided have alsovoiddoPerform()protected booleanfailOnError()protected org.springframework.context.ApplicationContextgetApplicationContext()protected abstract voidperformImpl()booleanvalidate()protected voidvalidateTenant(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:
doPerformin interfaceAntPerformable- Throws:
java.lang.Exception
-
validate
public boolean validate()
- Specified by:
validatein interfaceAntPerformable
-
beforePerform
public boolean beforePerform()
checks if sufficient attributes provided have also- Specified by:
beforePerformin interfaceAntPerformable
-
afterPerform
public void afterPerform()
- Specified by:
afterPerformin interfaceAntPerformable
-
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext()
-
-