Package design.pattern.behavioural
package design.pattern.behavioural
-
InterfacesClassDescription
ChainOfResponsibility
will be used to decouple the sender of request and the handler of request so that multiple handler can process the request and then pass the request to next handlerCommand
will be used to replace a method with an object and parameters by the object fields so that we can handle them in after some time or make another thread execute it.Interpreter<C>Interpreter
is used when it is needed to process a simple language with rules or grammarIterator<T>Iterator
is used to iterate sequentially over aggregate objects without exposing the internal collection usedMediator<U>Mediator
is used to decouple the communication between the objects and let mediator object to handle the communication between group of objectsNullObject
is used to represent absence of real object as a do nothing objectObserver<O>Observer
is used to define one-to-many dependency between objects which are interested in the state of objectState
is used when the behaviour of the object is completely depend on the internal state of the objectStrategy
is used to encapsulate the algorithms in different classes which can be configured in the context classTemplateMethod
is used to define the skeleton of algorithm in base class and which can be implemented in steps on the subclassesVisitor
is used to add new operations that work on objects without modifying class definitions