|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mmm.cms.homehealth.HomeHealthGrouperFactory
public class HomeHealthGrouperFactory
This Factory holds as set of Groupers and allows selection of a Grouper version by checking the Home Health record validaty against isValidForVersion() method of each available Grouper. The order of the Groupers for the isValidForVersion() check is the same order that the classes are loading into the Factory. The properties file should include the following properties:
| Field Summary | |
|---|---|
static java.lang.String |
PROPERT_CONFIG_SUFFIX
|
static java.lang.String |
PROPERTY_HH_CLASS_LIST
|
static java.lang.String |
PROPERTY_HOME_HEALTH_QUIET
|
| Fields inherited from interface com.mmm.cms.homehealth.proto.HomeHealthGrouperFactoryIF |
|---|
PROPERTY_HOME_HEALTH_CONFIG |
| Constructor Summary | |
|---|---|
HomeHealthGrouperFactory()
Constructor the initializes the Home Health Groupers list |
|
| Method Summary | |
|---|---|
protected void |
endProgressBar()
Stops the progress bar and closes it |
HomeHealthGrouperIF |
getGrouper(HomeHealthRecordIF record)
Searches the list of Home Health Groupers to determine which one will handle the record based on the dates on the record |
java.util.Properties |
getPropertiesFromEnv()
This finds the configuration/properties file that is defined by the environment variable String PROPERTY_HOME_HEALTH_CONFIG = "home_health_config"
If the environment variable is not set then it will use the default
properties file defined as config/HomeHealthGrouper.properties |
void |
init(java.util.Properties props)
This will load the Home Health Groupers in the order that they are listed in the 'home.health.grouper.class.list' of the Properties, then it will pass the properties files assocaited with that group by the classname.config option. |
protected void |
startProgressBar()
provides popup message showing the status of the initialization |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROPERTY_HH_CLASS_LIST
public static final java.lang.String PROPERT_CONFIG_SUFFIX
public static final java.lang.String PROPERTY_HOME_HEALTH_QUIET
| Constructor Detail |
|---|
public HomeHealthGrouperFactory()
| Method Detail |
|---|
public HomeHealthGrouperIF getGrouper(HomeHealthRecordIF record)
getGrouper in interface HomeHealthGrouperFactoryIFrecord -
public void init(java.util.Properties props)
throws java.lang.Exception,
java.rmi.RemoteException
PROPERTY_HOME_HEALTH_CONFIG
init in interface Initializableproperties -
java.lang.Exception
java.rmi.RemoteExceptionHomeHealthGrouperFactoryIF,
getPropertiesFromEnv()public java.util.Properties getPropertiesFromEnv()
String PROPERTY_HOME_HEALTH_CONFIG = "home_health_config"
If the environment variable is not set then it will use the default
properties file defined as config/HomeHealthGrouper.properties
HomeHealthGrouperFactoryIFprotected void startProgressBar()
protected void endProgressBar()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||