com.mycila.testing.core.annot
Annotation Type MycilaPlugins


@Retention(value=RUNTIME)
@Target(value=TYPE)
@Inherited
@Documented
public @interface MycilaPlugins

This annotation can be place in your test class to control the PluginManager. You can choose if you want to load Mycila Plugins statically shared for all tests or if the plugins should be loaded each time a test instance is created. Also, you have the ability to control which descriptor file is used to load the plugins.

Author:
Mathieu Carbou (mathieu.carbou@gmail.com)

Optional Element Summary
 String descriptor
          Overrides default plugin descriptor file to use.
 Cache value
          Specify if this test instance should use the plugins shared statically amongst all test instance or if the plugins should be reloaded for this test.
 

value

public abstract Cache value
Specify if this test instance should use the plugins shared statically amongst all test instance or if the plugins should be reloaded for this test.

Returns:
The cache strategy to use for plugins
Default:
com.mycila.testing.core.api.Cache.SHARED

descriptor

public abstract String descriptor
Overrides default plugin descriptor file to use. If null or empty, the plugin cache will not load anything: it will be up to the programmer to register plugins at runtime.

Returns:
The plugin descriptor file location in the classpath
Default:
"META-INF/mycila/testing/plugins.properties"


Copyright © 2008-2011 Mycila. All Rights Reserved.