- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 36 of file Plugins.java.
◆ execute()
static Map<String, Object> org.turro.action.Plugins.execute |
( |
String |
name, |
|
|
Map |
params |
|
) |
| |
|
static |
Definition at line 44 of file Plugins.java.
46 Map<String, Object> results =
new HashMap<>();
47 for(IElephantPlugin iPlugin : _plugins) {
48 if(iPlugin.itsMe(name)) {
49 iPlugin.setContext(params, results);
51 if(iPlugin.stopPropagating())
break;
◆ loadImplementation() [1/2]
static <T> T org.turro.action.Plugins.loadImplementation |
( |
Class< T > |
jclass | ) |
|
|
static |
Definition at line 57 of file Plugins.java.
static< T > T loadImplementation(Class< T > jclass)
◆ loadImplementation() [2/2]
static <T> T org.turro.action.Plugins.loadImplementation |
( |
Class< T > |
jclass, |
|
|
String |
label |
|
) |
| |
|
static |
Definition at line 61 of file Plugins.java.
63 for(Class pclass : _pluginClass) {
64 if(Reflections.of(pclass).canCast(jclass)) {
65 if(Strings.isBlank(label) ||
66 ((ElephantPlugin) pclass.getAnnotation(ElephantPlugin.class)).label().equals(label)) {
67 return (T) Reflections.of(pclass).instance();
The documentation for this class was generated from the following file: