org.powermock.core.classloader.annotations
Annotation Type SuppressStaticInitializationFor
@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
@Documented
@Inherited
public @interface SuppressStaticInitializationFor
Use this annotation to suppress static initializers (constructors) for one or
more classes.
The reason why an annotation is needed for this is because we need to know at
load-time if the static constructor execution for this
class should be skipped or not. Unfortunately we cannot pass the class as the
value parameter to the annotation (and thus get type-safe values) because
then the class would be loaded before PowerMock could have suppressed its
constructor.
value
public abstract String[] value
- Default:
- ""
Copyright © 2007-2012. All Rights Reserved.