Annotation Type SystemSetup
-
@Target({METHOD,TYPE}) @Retention(RUNTIME) @Documented public @interface SystemSetupThe@SystemSetupis an annotation (as a hock-in mechanism) for executing methods during the init/update process for given extensions. With the annotation attributeextensionyou can specify, for which extension those methods should be called. The init/update process will first search for the extension attribute in the method annotations and then in this class annotation. You have to specify one of them. If the given extension does not exist, the method won't be called. If the annotation attributesprocessortypeis not defined at the method nor at the class the default will be ALL then. Please make sure that the class is initialized properly (for example via Spring). Annotation attributes:extension- annotates in which extension the code will be executed. The default value is an empty String which means the annotated code won't be executed!process- annotates in which process the code will be executed. DuringINIT,UPDATEor in both(ALL). If at a method annotation noprocessattribute is defined (or NOTDEFINED is used) the definition from the class annotation is used.type- annotates in which mode the code will be executed. During creation of essencial data(ESSENTIAL), during creation of project data(PROJECT)or in both modes(ALL). If at a method annotation notypeattribute is defined (or NOTDEFINED is used) the definition from the class annotation is used.
-
-
Field Summary
Fields Modifier and Type Fields Description static java.lang.StringALL_EXTENSIONSThis constant can be used to tell the collector that the method should be called for every extension!
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringdescriptionDescription of a patch.java.lang.StringextensionThe default value for parameterextensionis an empty String.java.lang.StringnameName of a patch.booleanpatchMarks currentSystemSetupas a patch so the logic inside will be executed only once and tracked asSystemSetupAuditModelitem.SystemSetup.ProcessprocessThe default value parameterprocessis ALL.booleanrequiredIndicates whether patch is required to apply or not.SystemSetup.TypetypeThe default value for parametertypeis ALL.
-
-
-
-
type
SystemSetup.Type type
The default value for parametertypeis ALL.- Default:
- de.hybris.platform.core.initialization.SystemSetup.Type.NOTDEFINED
-
-
-
process
SystemSetup.Process process
The default value parameterprocessis ALL.- Default:
- de.hybris.platform.core.initialization.SystemSetup.Process.NOTDEFINED
-
-
-
name
java.lang.String name
Name of a patch. Used only ifpatch()is used. Default is an empty String.- Default:
- ""
-
-
-
description
java.lang.String description
Description of a patch. Used only ifpatch()is used. Default is an empty String.- Default:
- ""
-
-
-
required
boolean required
Indicates whether patch is required to apply or not. Used only ifpatch()is used. Default is an empty String.- Default:
- false
-
-
-
patch
boolean patch
Marks currentSystemSetupas a patch so the logic inside will be executed only once and tracked asSystemSetupAuditModelitem.- Default:
- false
-
-