- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 31 of file Controls.java.
◆ getControl() [1/4]
static Object org.turro.entities.Controls.getControl |
( |
String |
name | ) |
|
|
static |
Definition at line 37 of file Controls.java.
static Object getControl(String name)
◆ getControl() [2/4]
static Object org.turro.entities.Controls.getControl |
( |
String |
name, |
|
|
IConstructor |
constructor |
|
) |
| |
|
static |
◆ getControl() [3/4]
static Object org.turro.entities.Controls.getControl |
( |
String |
name, |
|
|
IConstructor |
constructor, |
|
|
String |
entityPath |
|
) |
| |
|
static |
Definition at line 49 of file Controls.java.
50 if(!Strings.isBlank(name)) {
51 for(String sclass : ClassNames.cached().byAnnotation(ElephantControl.class.getName())) {
52 Class pclass = Reflections.check(sclass);
53 if(pclass !=
null && ((ElephantControl) pclass.getAnnotation(ElephantControl.class)).name().equals(name)) {
54 if(constructor !=
null) {
55 return Reflections.of(pclass).classes(IConstructor.class).objects(constructor).instance();
56 }
else if(!Strings.isBlank(entityPath)) {
57 return Reflections.of(pclass).classes(String.class).objects(entityPath).instance();
59 return Reflections.of(pclass).instance();
◆ getControl() [4/4]
static Object org.turro.entities.Controls.getControl |
( |
String |
name, |
|
|
String |
entityPath |
|
) |
| |
|
static |
◆ CTRL_ATTACHMENT
final String org.turro.entities.Controls.CTRL_ATTACHMENT = "attachment" |
|
static |
The documentation for this class was generated from the following file: