ro.isdc.wro.http.handler.factory
Class SimpleRequestHandlerFactory

java.lang.Object
  extended by ro.isdc.wro.http.handler.factory.SimpleRequestHandlerFactory
All Implemented Interfaces:
RequestHandlerFactory, ObjectFactory<Collection<RequestHandler>>
Direct Known Subclasses:
DefaultRequestHandlerFactory

public class SimpleRequestHandlerFactory
extends Object
implements RequestHandlerFactory

A RequestHandlerFactory which holds RequestHandler's in a list.

Since:
1.4.7
Author:
Alex Objelean

Constructor Summary
SimpleRequestHandlerFactory()
           
 
Method Summary
 SimpleRequestHandlerFactory addHandler(RequestHandler handler)
          Adds a single handler to existing collection.
 Collection<RequestHandler> create()
          
 SimpleRequestHandlerFactory setHandlers(Collection<RequestHandler> handlers)
          Sets a not null collection of handlers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRequestHandlerFactory

public SimpleRequestHandlerFactory()
Method Detail

create

public final Collection<RequestHandler> create()

Specified by:
create in interface ObjectFactory<Collection<RequestHandler>>

setHandlers

public final SimpleRequestHandlerFactory setHandlers(Collection<RequestHandler> handlers)
Sets a not null collection of handlers.


addHandler

public final SimpleRequestHandlerFactory addHandler(RequestHandler handler)
Adds a single handler to existing collection.

Parameters:
handler - a not null RequestHandler


Copyright © 2008-2013. All Rights Reserved.