1 24 package org.ofbiz.widget; 25 26 import org.ofbiz.base.util.Debug; 27 28 34 public class WidgetContentWorker { 35 public static final String module = WidgetContentWorker.class.getName(); 36 public static ContentWorkerInterface contentWorker = null; 37 static { 38 try { 39 ClassLoader loader = Thread.currentThread().getContextClassLoader(); 40 contentWorker = (ContentWorkerInterface) loader.loadClass("org.ofbiz.content.content.ContentWorker").newInstance(); 42 } catch (ClassNotFoundException e) { 43 Debug.logError(e, "Could not pre-initialize dynamically loaded class: ", module); 44 } catch (IllegalAccessException e) { 45 Debug.logError(e, "Could not pre-initialize dynamically loaded class: ", module); 46 } catch (InstantiationException e) { 47 Debug.logError(e, "Could not pre-initialize dynamically loaded class: ", module); 48 } 49 } 50 } 51 | Popular Tags |