public static Object create(String aClassName, Map properties) { try { return create(Class.forName(aClassName), properties); } catch (ClassNotFoundException e) { throw new EtmException(e.getMessage()); } }
public static Object create(Class aClazz, Map properties) { try { Object obj = aClazz.newInstance(); if (properties != null) { setProperties(obj, properties); } return obj; } catch (InstantiationException e) { throw new EtmException(e.getMessage()); } catch (IllegalAccessException e) { throw new EtmException(e.getMessage()); } }
public static Object create(Class aClazz, Map properties) { try { Object obj = aClazz.newInstance(); if (properties != null) { setProperties(obj, properties); } return obj; } catch (InstantiationException e) { throw new EtmException(e.getMessage()); } catch (IllegalAccessException e) { throw new EtmException(e.getMessage()); } }
public void init(EtmMonitorContext ctx) { super.init(ctx); context = ctx; if (persistenceBackend == null) { persistenceBackend = new FileSystemPersistenceBackend(); } if (backendProperties != null) { PropertySupport.setProperties(persistenceBackend, backendProperties); } }
public static Object create(String aClassName, Map properties) { try { return create(Class.forName(aClassName), properties); } catch (ClassNotFoundException e) { throw new EtmException(e.getMessage()); } }
public void init(EtmMonitorContext ctx) { super.init(ctx); context = ctx; if (persistenceBackend == null) { persistenceBackend = new FileSystemPersistenceBackend(); } if (backendProperties != null) { PropertySupport.setProperties(persistenceBackend, backendProperties); } }