public static PluginLoader getInstance() { if (pluginLoader == null) { pluginLoader = new PluginLoader(); } return pluginLoader; }
public FrontEndProfile getFrontEndProfile(String name) { FrontEndProfile profile = null; FrontEnd frontend = getFrontEnd(name); profile = loadFrontEndProfile(getFrontEndProfileClass(frontend)); for (FrontEndGenerator generator : getFrontEndGenerators(frontend)) { profile.registerGenerator(generator); } if (frontend.getProcessor() != null) { profile.setProcessor(loadProcessor(getProcessorClass(frontend))); } if (frontend.getContainer() != null) { profile.setContainerClass(loadContainerClass(getContainerClass(frontend))); profile.setToolspec(getToolspec(frontend)); } if (frontend.getBuilder() != null) { profile.setWSDLBuilder(loadBuilder(getBuilderClass(frontend))); } return profile; }
serviceList = new ArrayList<>(); PluginLoader pluginLoader = PluginLoader.newInstance(); FrontEndProfile frontend = pluginLoader.getFrontEndProfile("jaxws");
public DataBindingProfile getDataBindingProfile(String name) { DataBindingProfile profile = null; DataBinding databinding = getDataBinding(name); profile = loadDataBindingProfile(databinding.getPackage() + "." + databinding.getProfile()); return profile; }
private FrontEndProfile loadFrontEnd(String name) { if (StringUtils.isEmpty(name)) { name = DEFAULT_FRONTEND_NAME; } if (isVerbose()) { out.println("Loading FrontEnd " + name + " ..."); } return pluginLoader.getFrontEndProfile(name); }
private String getToolspec(FrontEnd frontend) { String toolspec = frontend.getContainer().getToolspec(); return "/" + getContainerPackage(frontend).replace(".", "/") + "/" + toolspec; }
private DataBindingProfile loadDataBinding(String name) { if (StringUtils.isEmpty(name)) { name = DEFAULT_DATABINDING_NAME; } if (isVerbose()) { out.println("Loading DataBinding " + name + " ..."); } return pluginLoader.getDataBindingProfile(name); }
public FrontEndProfile getFrontEndProfile(String name) { FrontEndProfile profile = null; FrontEnd frontend = getFrontEnd(name); profile = loadFrontEndProfile(getFrontEndProfileClass(frontend)); for (FrontEndGenerator generator : getFrontEndGenerators(frontend)) { profile.registerGenerator(generator); } if (frontend.getProcessor() != null) { profile.setProcessor(loadProcessor(getProcessorClass(frontend))); } if (frontend.getContainer() != null) { profile.setContainerClass(loadContainerClass(getContainerClass(frontend))); profile.setToolspec(getToolspec(frontend)); } if (frontend.getBuilder() != null) { profile.setWSDLBuilder(loadBuilder(getBuilderClass(frontend))); } return profile; }
public DataBindingProfile getDataBindingProfile(String name) { DataBindingProfile profile = null; DataBinding databinding = getDataBinding(name); profile = loadDataBindingProfile(databinding.getPackage() + "." + databinding.getProfile()); return profile; }
private FrontEndProfile loadFrontEnd(String name) { if (StringUtils.isEmpty(name)) { name = DEFAULT_FRONTEND_NAME; } if (isVerbose()) { out.println("Loading FrontEnd " + name + " ..."); } return pluginLoader.getFrontEndProfile(name); }
private String getToolspec(FrontEnd frontend) { String toolspec = frontend.getContainer().getToolspec(); return "/" + getContainerPackage(frontend).replace(".", "/") + "/" + toolspec; }
private DataBindingProfile loadDataBinding(String name) { if (StringUtils.isEmpty(name)) { name = DEFAULT_DATABINDING_NAME; } if (isVerbose()) { out.println("Loading DataBinding " + name + " ..."); } return pluginLoader.getDataBindingProfile(name); }
public static PluginLoader newInstance() { return new PluginLoader(); } public static PluginLoader getInstance() {
private String getContainerClass(FrontEnd frontend) { return getContainerPackage(frontend) + "." + frontend.getContainer().getName(); }
public static PluginLoader getInstance() { if (pluginLoader == null) { pluginLoader = new PluginLoader(); } return pluginLoader; }
private String getContainerClass(FrontEnd frontend) { return getContainerPackage(frontend) + "." + frontend.getContainer().getName(); }
public static PluginLoader newInstance() { return new PluginLoader(); } public static PluginLoader getInstance() {