protected SimonSuperMXBean constructObject ( Simon simon ) { SimonSuperMXBean simonMxBean ; if ( simon instanceof Counter ) { simonMxBean = new CounterMXBeanImpl ( ( Counter ) simon ) ; } else if ( simon instanceof Stopwatch ) { simonMxBean = new StopwatchMXBeanImpl ( ( Stopwatch ) simon ) ; } else { onManagerWarning ( "Unknown type of Simon! " + simon , null ) ; simonMxBean = null ; } return simonMxBean ; }
Constructs JMX object from Simon object . Method can be overridden .