celeboss
Class FactoryLoader

java.lang.Object
  extended byceleboss.FactoryLoader

public final class FactoryLoader
extends java.lang.Object

This is a static class that provides one centralised place to load the correct HTMLDataSourceFactory for a set of options. It is generally used to extract the external properties from command line or System properties.

Version:
1.0
Author:
bevans

Field Summary
static java.lang.String FILEFACTORY
          Factory name for file based.
static java.lang.String WEBFACTORY
          Factory name of web
 
Method Summary
static CelebDataSourceFactory loadFactory(java.lang.String property)
          This method scans the command line arguments to extract those that are relevant to factory loading.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILEFACTORY

public static final java.lang.String FILEFACTORY
Factory name for file based.

See Also:
Constant Field Values

WEBFACTORY

public static final java.lang.String WEBFACTORY
Factory name of web

See Also:
Constant Field Values
Method Detail

loadFactory

public static CelebDataSourceFactory loadFactory(java.lang.String property)
This method scans the command line arguments to extract those that are relevant to factory loading. The argument is in the style {:}

Parameters:
property - Command line argument relevant to factory loading.
Returns:
New factory based on options.