java - where does the business logic live when using a state pattern? -


is wrapper object ? or state object ?

can please see examples ?

essentially, you'll have business logic on state change. may include "state_entered" triggers , "state_leave" triggers.

you may want "state_idle" triggers on chance state can enter itself.

examples require code end base off of.


Comments