org.simoes.lpd.handler
Class HandlerFactory

java.lang.Object
  extended byorg.simoes.lpd.handler.HandlerFactory

public class HandlerFactory
extends java.lang.Object

Creates the concrete implementation of the Handler we will use to process PrintJobs based on the properties file. The default if there are problems is FILE.

Author:
Chris Simoes

Method Summary
static HandlerFactory getInstance()
          This class is a singleton.
 HandlerInterface getPrintHandler()
          Returns the concrete implementation of the HandlerInterface based on the settings in the properties file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static HandlerFactory getInstance()
This class is a singleton.

Returns:
the only instance of HandlerFactory

getPrintHandler

public HandlerInterface getPrintHandler()
Returns the concrete implementation of the HandlerInterface based on the settings in the properties file.

Returns:
HandlerInterface the concrete implementation of the HandlerInterface