com.fruitioninc.jwc
Interface ApplicationFactory

All Known Implementing Classes:
DefaultApplicationFactory

public interface ApplicationFactory

Creator of applications. The controller servlet delegates to implementations of this interface to create Application objects for each incoming HTTP request. Implementations of this class have the opportunity to create a new Application instance for each request, reuse/cache a single instance, get an instance out of a pool, or use some other mechanism. The Configuration class can be used to configure what implementation of this class is used by the controller servlet.

See Also:
ControllerServlet, Configuration

Method Summary
 Application newInstance(javax.servlet.http.HttpServletRequest request)
          Creates an application object for a HTTP request.
 

Method Detail

newInstance

public Application newInstance(javax.servlet.http.HttpServletRequest request)
Creates an application object for a HTTP request. This is called each time a request is recieved.

Parameters:
request - the request to create an application object for.
Returns:
an application object for a HTTP request