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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static Properties
initAppComponents
(Properties appComponentsDefaults) protected static Properties
protected static Properties
protected static BusinessObjectFactory
initBusinessObjectFactory
(Properties appSettings, Properties appComponents, DAOFactory daoFactory) protected static DAOFactory
initDAOFactory
(Properties appSettings, Properties appComponents, Properties appComponentsDefaults, Properties hibernate) protected static Properties
protected static com.google.common.eventbus.EventBus
static Map
initializeSystem
(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
-