@Target(value={METHOD,TYPE})
@Retention(value=RUNTIME)
@Documented
public @interface SystemSetup
@SystemSetup is an annotation (as a hock-in mechanism) for executing methods during the init/update
process for given extensions.
With the annotation attribute extension you 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 attributes process or type is 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. During INIT,
UPDATE or in both (ALL). If at a method annotation no process attribute 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 no type attribute is defined (or NOTDEFINED is used) the definition from the
class annotation is used.| Modifier and Type | Fields and Description |
|---|---|
static java.lang.String |
ALL_EXTENSIONS
This constant can be used to tell the collector that the method should be called for every extension!
|
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
description
Description of a patch.
|
java.lang.String |
extension
The default value for parameter
extension is an empty String. |
java.lang.String |
name
Name of a patch.
|
boolean |
patch
Marks current
SystemSetup as a patch so the logic inside will be executed only once and tracked as
SystemSetupAuditModel item. |
SystemSetup.Process |
process
The default value parameter
process is ALL. |
boolean |
required
Indicates whether patch is required to apply or not.
|
SystemSetup.Type |
type
The default value for parameter
type is ALL. |
public static final java.lang.String ALL_EXTENSIONS
public abstract java.lang.String extension
extension is an empty String.public abstract SystemSetup.Type type
type is ALL.public abstract SystemSetup.Process process
process is ALL.public abstract java.lang.String name
patch() is used. Default is an empty String.public abstract java.lang.String description
patch() is used. Default is an empty String.public abstract boolean required
patch() is used. Default is an empty
String.public abstract boolean patch
SystemSetup as a patch so the logic inside will be executed only once and tracked as
SystemSetupAuditModel item.Copyright © 2018 SAP SE. All Rights Reserved.