Debian Codegraph @

src/aQute/bnd/annotation/plugin/InternalPluginNamespace.java

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
•1 package aQute.bnd.annotation.plugin;
2
3 /**
4 * External Plugins are executable code that the Workspace can execute. An
5 * external plugin must define a Capability in the
6 * {@link InternalPluginNamespace}. This namespace defines the attributes:
7 *
8 * <pre>
9 * bnd.external.plugin name of the plugin
10 * objectClass the service type of the plugin
11 * implementation the implementation class
12 * </pre>
13 *
14 * There is an annotation {@link BndPlugin} that can be applied to a plugin.
15 */
16 public interface InternalPluginNamespace {
17
18 /**
19 * Namespace name for external plugin capabilities and requirements.
20 */
21 String NAMESPACE = "bnd.external.plugin";
22 /**
23 * The name of the external plugin
24 */
25 String NAME_A = NAMESPACE;
26 /**
27 * The implementation class
28 */
29 String IMPLEMENTATION_A = "implementation";
30 /**
31 * The configuration interface
32 */
33 String PARAMETERS_A = "parameters";
34 /**
35 * Do not show as option in UI (normally for plugins added by the software
36 */
37
38 String HIDE_A = "hide";
39
40 static String filter(String name) {
41 StringBuilder sb = new StringBuilder();
42 sb.append("(&(")
43 .append(NAME_A)
44 .append("=")
45 .append(name)
46 .append(")(")
47 .append(IMPLEMENTATION_A)
48 .append("=*))");
49 return sb.toString();
50 }
51
52 }