i have 8 handler class, is there a way i can create the chain dynamically in java? What I mean, if I have two classes right now like: HandlerA, HandlerB, HandlerChain. HanddlerChain will create the chain, HandlerA->HandlerB, but when i add HandlerC then it is automatically add without any interaction and the chain become, HandlerA->HandlerB->HandlerC.
Aucun commentaire:
Enregistrer un commentaire