|
From: Bavo De R. <ba...@us...> - 2010-08-07 11:07:06
|
Update of /cvsroot/pfc/pfc-rt/src/java/portal/rt/services/monitor In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv11634/src/java/portal/rt/services/monitor Modified Files: ObjectMonitorTarget.java MonitorServiceImpl.java Log Message: Refactored to support generics. Added a default serialization id for all serializable classes. Index: ObjectMonitorTarget.java =================================================================== RCS file: /cvsroot/pfc/pfc-rt/src/java/portal/rt/services/monitor/ObjectMonitorTarget.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ObjectMonitorTarget.java 13 Sep 2005 11:28:01 -0000 1.1 --- ObjectMonitorTarget.java 7 Aug 2010 11:06:58 -0000 1.2 *************** *** 28,39 **** public class ObjectMonitorTarget { ! public ObjectMonitorTarget(Class pInterface) { _pInterface = pInterface; ! _methodTargets = new HashMap(); } ! public Class getMonitoredInterface() { return _pInterface; --- 28,39 ---- public class ObjectMonitorTarget { ! public ObjectMonitorTarget(Class<?> pInterface) { _pInterface = pInterface; ! _methodTargets = new HashMap<Method,MethodMonitorTarget>(); } ! public Class<?> getMonitoredInterface() { return _pInterface; *************** *** 54,59 **** } ! private Class _pInterface; ! private HashMap _methodTargets; } \ No newline at end of file --- 54,59 ---- } ! private Class<?> _pInterface; ! private HashMap<Method,MethodMonitorTarget> _methodTargets; } \ No newline at end of file Index: MonitorServiceImpl.java =================================================================== RCS file: /cvsroot/pfc/pfc-rt/src/java/portal/rt/services/monitor/MonitorServiceImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MonitorServiceImpl.java 13 Sep 2005 11:28:01 -0000 1.1 --- MonitorServiceImpl.java 7 Aug 2010 11:06:58 -0000 1.2 *************** *** 34,41 **** this._namespace = namespace; ! _targetInterfaces = new HashMap(); } ! public Object monitor(Object pTarget, Class pInterface, String pName) { if (!isStopped()) --- 34,41 ---- this._namespace = namespace; ! _targetInterfaces = new HashMap<Class<?>,ObjectMonitorTarget>(); } ! public Object monitor(Object pTarget, Class<?> pInterface, String pName) { if (!isStopped()) *************** *** 85,89 **** } ! private HashMap _targetInterfaces; private boolean _stopped = true; --- 85,89 ---- } ! private HashMap<Class<?>,ObjectMonitorTarget> _targetInterfaces; private boolean _stopped = true; |