@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface EnvironmentalControl
Annotation for environment switching. Use this annotation over methods which you want to behave differently
in case of development or testing environment. Annotation value requires fully qualified method name.
if alternate method requires no argument then value must be a.b.c.MyClass.myMethod()
if alternate method requires argument values of annotated method then value must be a.b.c.MyClass.myMethod(args)
if alternate method requires reference of 'this' values of annotated method then value must be a.b.c.MyClass.myMethod(this)
- Author:
- Vaibhav Pratap Singh