ro.isdc.wro.http.handler.factory
Class SimpleRequestHandlerFactory
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleRequestHandlerFactory
public SimpleRequestHandlerFactory()
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.