18 package org.turro.plugin;
20 import org.turro.reflection.ReflectionUtil;
28 private static final String[][] plugs = {
31 {
"vcard",
"org.turro.vcard.util.VCardPlugin" },
32 {
"publication",
"org.turro.publication.util.PublicationPlugin" },
33 {
"acceptctrl",
"org.turro.zul.acceptance.AcceptanceButton" },
34 {
"tagitctrl",
"org.turro.zul.tagit.TagItButton" },
35 {
"tagitlabel",
"org.turro.zul.tagit.TagItLabel" },
36 {
"tagitnav",
"org.turro.zul.tagit.TagItNavigator" },
37 {
"dossier",
"org.turro.dossier.util.DossierImpl" },
38 {
"dossierctrl",
"org.turro.dossier.zul.util.DossierInfoByPath" },
39 {
"issue",
"org.turro.dossier.util.IssueImpl" },
40 {
"issuectrl",
"org.turro.dossier.zul.util.IssueInfoByPath" },
41 {
"logctrl",
"org.turro.zul.log.LogButton" },
42 {
"loganchor",
"org.turro.zul.log.LogAnchor" },
43 {
"logloader",
"org.turro.contacts.log.LogLoader" },
44 {
"schedulectrl",
"org.turro.scheduler.zul.entities.ScheduleButton" },
45 {
"scheduleanchor",
"org.turro.scheduler.zul.entities.ScheduleAnchor" }
74 public static Object
get(String key) {
75 for(String p[] : plugs) {
76 if(key.equals(p[0])) {
77 return ReflectionUtil.instance(ReflectionUtil.classCheck(p[1]));
83 public static boolean exists(String key) {
84 for(String p[] : plugs) {
85 if(key.equals(p[0])) {
86 return ReflectionUtil.classCheck(p[1]) !=
null;
static boolean exists(String key)