public void add_behaviour_to(IRepresentAMethodInvocation invocation) { timer.start(); invocation.run(); timer.stop(); logger.info("This is how long it took"); }
public void add_behaviour_to(IRepresentAMethodInvocation invocation) { if (constraint()) { invocation.run(); } throw new NotImplementedException("This behaviour does not meet the currently defined constraint"); }
public void add_behaviour_to(IRepresentAMethodInvocation invocation) { }
public void add_behaviour_to(IRepresentAMethodInvocation invocation) { first.add_behaviour_to(invocation); second.add_behaviour_to(invocation); }