Evaluating Software Design Patterns
— the "Gang of Four" patterns implemented in Java 6

Uses of Interface
dk.rode.thesis.chainofresponsibility.Handler

Packages that use Handler
dk.rode.thesis.chainofresponsibility Implementations and examples of the Chain of Responsibility design pattern [Gamma95, p.223]. 
 

Uses of Handler in dk.rode.thesis.chainofresponsibility
 

Subinterfaces of Handler in dk.rode.thesis.chainofresponsibility
 interface HandlerChain<R>
          A handler chain is an ordered list of handlers that will be passed a request in turn until the first applicable handler can handle it.
 

Classes in dk.rode.thesis.chainofresponsibility that implement Handler
 class AbstractHandlerChain<R>
          An abstract handler chain implements the basic traits of the HandlerChain interface.
 class CharacterHandler
          An abstract character handler implements the basic traits of handlers handling Character objects.
 class LetterCaseHandler
          A letter case handler is a handler that can handle letter characters in either upper or lower case only.
 class LetterHandler
          A letter handler is a handler that can handle letter characters.
 class StandardHandlerChain<R>
          A standard handler chain is the standard implementation of the HandlerChain interface.
 class SymbolHandler
          A symbol handler is a handler that can handle symbol characters.
 class WeakHandlerChain<R>
          A weak handler chain is a thread-safe handler chain storing registered handlers as weak references.
 class WhitespaceHandler
          A whitespace handler is a handler that can handle whitespace characters.
 

Fields in dk.rode.thesis.chainofresponsibility with type parameters of type Handler
private  LinkedHashSet<WeakReferenceEntry<Handler<R>>> WeakHandlerChain.handlers
          The ordered list of handlers, where the first handler is the first inserted element.
private  LinkedHashSet<Handler<R>> StandardHandlerChain.handlers
          The ordered list of handlers, where the first handler is the first inserted element.
 

Methods in dk.rode.thesis.chainofresponsibility that return Handler
 Handler<R> HandlerLink.forward(R request, Handler<R> current)
          Forwards the the request supplied as request to the handler represented by this link.
 Handler<R> AbstractHandlerChain.forward(R request, Handler<R> current)
           
 Handler<Character> CharacterHandler.handle(Character character, HandlerLink<Character> link)
          Implements the semantics required for chaining character handlers so sub-classes do not have to.
 Handler<R> HandlerChain.handle(R request)
          Handles the request supplied as request by forwarding it to each handler in this chain until a handler can handle it, starting from the first registered handler.
 Handler<R> AbstractHandlerChain.handle(R request)
          Handles the request supplied as request by forwarding it to each handler in this chain until a handler can handle it, starting from the first registered handler.
 Handler<R> Handler.handle(R request, HandlerLink<R> link)
          Handles the request supplied as request or forwards it to the next handler in the chain represented by the handler link supplied as link, if any.
 Handler<R> AbstractHandlerChain.handle(R request, HandlerLink<R> link)
           
 

Methods in dk.rode.thesis.chainofresponsibility that return types with arguments of type Handler
 List<Handler<R>> WeakHandlerChain.getHandlers(Handler<R> handler)
          Returns an ordered list of the handlers currently associated with this chain, starting from the handler after handler, if supplied.
 List<Handler<R>> StandardHandlerChain.getHandlers(Handler<R> handler)
           
 List<Handler<R>> HandlerChain.getHandlers(Handler<R> handler)
          Returns an ordered list of the handlers currently associated with this chain, starting from the handler after handler, if supplied.
 

Methods in dk.rode.thesis.chainofresponsibility with parameters of type Handler
 Handler<R> HandlerLink.forward(R request, Handler<R> current)
          Forwards the the request supplied as request to the handler represented by this link.
 Handler<R> AbstractHandlerChain.forward(R request, Handler<R> current)
           
 List<Handler<R>> WeakHandlerChain.getHandlers(Handler<R> handler)
          Returns an ordered list of the handlers currently associated with this chain, starting from the handler after handler, if supplied.
 List<Handler<R>> StandardHandlerChain.getHandlers(Handler<R> handler)
           
 List<Handler<R>> HandlerChain.getHandlers(Handler<R> handler)
          Returns an ordered list of the handlers currently associated with this chain, starting from the handler after handler, if supplied.
 boolean WeakHandlerChain.isRegistered(Handler<R> handler)
           
 boolean StandardHandlerChain.isRegistered(Handler<R> handler)
           
 boolean HandlerChain.isRegistered(Handler<R> handler)
          Returns true if handler is registered to this handler chain, false if not.
 void WeakHandlerChain.register(Handler<R> handler)
           
 void StandardHandlerChain.register(Handler<R> handler)
           
 void HandlerChain.register(Handler<R> handler)
          Registers the handler supplied as handler to this handler chain.
 void WeakHandlerChain.unregister(Handler<R> handler)
           
 void StandardHandlerChain.unregister(Handler<R> handler)
           
 void HandlerChain.unregister(Handler<R> handler)
          Removes the handler supplied as handler from this handler chain.
 


Gunni Rode / rode.dk

Feel free to use and/or modify the Java 6 source code developed for this thesis AT YOUR OWN RISK, but note that the source code comes WITHOUT ANY — and I do mean WITHOUT ANY — form of warranty WHAT SO EVER!

The original thesis and source code are available at rode.dk/thesis.