Debian Codegraph @

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

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
•1 package aQute.bnd.annotation.plugin;
2
3 import java.util.Optional;
4
5 /**
6 * This type represents a detected Internal Plugin as defined by the
7 * {@link BndPlugin} annotation (and {@link InternalPluginNamespace}
8 * capability.)
9 */
10 public interface InternalPluginDefinition {
11 /**
12 * The short name of the plugin as set with the {@link BndPlugin#name()}
13 *
14 * @return the name
15 */
16 String getName();
17
18 /**
19 * The implementation type of the plugin as set with the type that the
20 * {@link BndPlugin} annotation is applied to.
21 *
22 * @return the implementation class
23 */
24 Class<?> getImplementation();
25
26 /**
27 * The configuration type of the plugin as set with
28 * {@link BndPlugin#parameters()}. The name is not configuration sadly due
29 * to baselining.
30 *
31 * @return the configuration class
32 */
33 Optional<Class<?>> getParameters();
34
35 /**
36 * A template string for this plugin including all attributes the plugin
37 * supports
38 *
39 * @return a template definition for this plugin
40 */
41 String getTemplate();
42
43 /**
44 * If this plugin should be hidden
45 *
46 * @return true if this plugin should be hidden
47 */
48 boolean isHidden();
49 }