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 Object implements AntPerformable
Abstraction for ant performables for administration issues.
  • Field Details

    • tenantId

      protected String tenantId
  • Constructor Details

    • AbstractAntPerformable

      public AbstractAntPerformable(String tenant)
  • Method Details

    • validateTenant

      protected void validateTenant(String tenant)
      validates tenant name correctness
    • failOnError

      protected boolean failOnError()
    • performImpl

      protected abstract void performImpl() throws Exception
      Throws:
      Exception
    • doPerform

      public final void doPerform() throws Exception
      Specified by:
      doPerform in interface AntPerformable
      Throws:
      Exception
    • validate

      public boolean validate()
      Specified by:
      validate in interface AntPerformable
    • beforePerform

      public boolean beforePerform()
      checks if sufficient attributes provided have also
      Specified by:
      beforePerform in interface AntPerformable
    • afterPerform

      public void afterPerform()
      Specified by:
      afterPerform in interface AntPerformable
    • getApplicationContext

      protected org.springframework.context.ApplicationContext getApplicationContext()