Skip navigation links

Package com.preemptive.annotation.instrumentation

Provides annotations for injecting Checks and Responses in applications with PreEmptive Protection™ DashO™ for Android & Java.

See: Description

Package com.preemptive.annotation.instrumentation Description

Provides annotations for injecting Checks and Responses in applications with PreEmptive Protection™ DashO™ for Android & Java.

DashO uses these annotations as well as values from the DashO project file to inject Checks and Responses into your classes files.

Dynamic Properties

The following dynamic properties can be used in annotations.

You can use METHOD_NAME and PROP_NAME in annotations used at the class level. The actual values will be expanded only when the annotation is applied to a specific method.

Specifying Sources and Actions

Several annotations specify sources or actions for dynamic information that will be used with the generated information. These can reference either a field or a method defined in the current class or a static method or field in a different class.

Static fields and methods can be used from any method. Instance fields and methods can only be used from instance methods in the same class. Fields must have the expected type as required by the annotation. Methods must have the expected return type and parameters as required by the annotation. Specified fields and methods must be accessible from the injection location at runtime.

Use the following format for specifying the field or method:

Note: The @ cannot be used when referencing a static method or field in a different class. The @ is optional when referencing a static method or field in the same class.
An incorrectly specified source or action will cause an error.

Related Documentation

For additional documentation, please see the
  • PreEmptive Protection DashO for Android & Java User Guide.
  • Skip navigation links

    Copyright 2019 PreEmptive Solutions, LLC. All Rights Reserved.