1 19 20 package org.apache.excalibur.instrument.test; 21 22 import org.apache.excalibur.instrument.InstrumentProxy; 23 24 30 public class TestInstrumentProxy 31 implements InstrumentProxy 32 { 33 private boolean m_active; 34 private int m_value; 35 36 39 45 public boolean isActive() 46 { 47 return m_active; 48 } 49 50 60 public void increment( int count ) 61 { 62 m_value += count; 63 } 64 65 75 public void setValue( int value ) 76 { 77 m_value = value; 78 } 79 80 83 86 public void activate() 87 { 88 m_active = true; 89 } 90 91 93 public int getValue() 94 { 95 return m_value; 96 } 97 } 98 | Popular Tags |