Class CommandLineSupport
java.lang.Object
com.softslate.commerce.businessobjects.core.CommandLineSupport
- Direct Known Subclasses:
CommandLineExample,CommandLineFailedPaymentCheck,CommandLineReindexLucene,CommandLineSorter
An abstract useful for subclassing by classes that need to be invoked from
the command line. A method for initializing all of the system objects needed
to perform queries and invoke business objects is provided.
See the accompanying
CommandLineExample for an example of a
subclass which may be invoked from the command line, and
commandLineExample.sh for a Unix shell script that may be used
to fire off the example.- Author:
- dtobey
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static PropertiesinitAppComponents(Properties appComponentsDefaults) protected static Propertiesprotected static Propertiesprotected static BusinessObjectFactoryinitBusinessObjectFactory(Properties appSettings, Properties appComponents, DAOFactory daoFactory) protected static DAOFactoryinitDAOFactory(Properties appSettings, Properties appComponents, Properties appComponentsDefaults, Properties hibernate) protected static Propertiesprotected static com.google.common.eventbus.EventBusstatic MapinitializeSystem(String adminUserName)
-
Field Details
-
log
static org.apache.commons.logging.Log log
-
-
Constructor Details
-
CommandLineSupport
public CommandLineSupport()
-
-
Method Details
-
initializeSystem
-
initAppSettings
- Throws:
IOException
-
initAppComponentsDefaults
- Throws:
IOException
-
initAppComponents
- Throws:
IOException
-
initHibernateSettings
- Throws:
IOException
-
initDAOFactory
protected static DAOFactory initDAOFactory(Properties appSettings, Properties appComponents, Properties appComponentsDefaults, Properties hibernate) throws Exception - Throws:
Exception
-
initBusinessObjectFactory
protected static BusinessObjectFactory initBusinessObjectFactory(Properties appSettings, Properties appComponents, DAOFactory daoFactory) throws Exception - Throws:
Exception
-
initializeEventBus
-