| •1 |
package aQute.bnd.annotation.plugin; |
| 2 |
|
| 3 |
import java.lang.annotation.ElementType; |
| 4 |
import java.lang.annotation.Retention; |
| 5 |
import java.lang.annotation.RetentionPolicy; |
| 6 |
import java.lang.annotation.Target; |
| 7 |
|
| 8 |
import org.osgi.annotation.bundle.Attribute; |
| 9 |
import org.osgi.annotation.bundle.Capability; |
| 10 |
|
| 11 |
@Capability(namespace = InternalPluginNamespace.NAMESPACE, attribute = { |
| 12 |
InternalPluginNamespace.IMPLEMENTATION_A + "=${@class}" |
| 13 |
}) |
| 14 |
@Target({ |
| 15 |
ElementType.TYPE |
| 16 |
}) |
| 17 |
@Retention(RetentionPolicy.RUNTIME) |
| 18 |
public @interface BndPlugin { |
| 19 |
|
| 20 |
@Attribute(InternalPluginNamespace.NAME_A) |
| 21 |
String name(); |
| 22 |
|
| 23 |
@Attribute(InternalPluginNamespace.PARAMETERS_A) |
| 24 |
Class<?> parameters() default Object.class; |
| 25 |
|
| 26 |
@Attribute(InternalPluginNamespace.HIDE_A) |
| 27 |
boolean hide() default false; |
| 28 |
} |