package org.csstudio.swt.xygraph.util; /** * Implementation loader for RAP/RCP single sourcing. * @author Xihui Chen * */ public class ImplementationLoader { public static Object newInstance(Class<?> type){ String name = type.getName(); Object result = null; try { result = type.getClassLoader().loadClass(name + "Impl").newInstance(); //$NON-NLS-1$ } catch (Exception e) { } return result; } }