com.im.commons 5.9

com.im.commons.util
Class SpringContextConfigurations

java.lang.Object
  extended by com.im.commons.util.SpringContextConfigurations

public class SpringContextConfigurations
extends Object

A common class containing references to all spring context files we need to use here and there.


Field Summary
static String APP_CONTEXT_DATA_SOURCE_DEFINITION_FILE
          Holds path to datasource configuration context file.
static String APP_CONTEXT_DATA_TYPE_COLUMN_HANDLER_DEFINITIONS_FILE
          Holds path to column types beans configuration file.
static String APP_CONTEXT_ODATA_PRODUCER_PROVIDERS_FILE
          The constant holds path to OData producer provider beans configuration file.
static String APP_CONTEXT_OPERATION_DEFINITIONS_FILE
          Holds path to operations definitions beans configuration file.
 
Constructor Summary
SpringContextConfigurations()
           
 
Method Summary
static String[] getContextFiles(boolean isThreeTierMode)
          takes the isServerMode and decides which set of spring context should be returned.
static List<String> getLocalModeOnlyContextFiles()
           
static List<String> getServerOnlyContextFiles()
           
static List<String> getSharedContextFiles()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APP_CONTEXT_DATA_SOURCE_DEFINITION_FILE

public static final String APP_CONTEXT_DATA_SOURCE_DEFINITION_FILE
Holds path to datasource configuration context file.

See Also:
Constant Field Values

APP_CONTEXT_DATA_TYPE_COLUMN_HANDLER_DEFINITIONS_FILE

public static final String APP_CONTEXT_DATA_TYPE_COLUMN_HANDLER_DEFINITIONS_FILE
Holds path to column types beans configuration file.

See Also:
Constant Field Values

APP_CONTEXT_OPERATION_DEFINITIONS_FILE

public static final String APP_CONTEXT_OPERATION_DEFINITIONS_FILE
Holds path to operations definitions beans configuration file.

See Also:
Constant Field Values

APP_CONTEXT_ODATA_PRODUCER_PROVIDERS_FILE

public static final String APP_CONTEXT_ODATA_PRODUCER_PROVIDERS_FILE
The constant holds path to OData producer provider beans configuration file.

See Also:
Constant Field Values
Constructor Detail

SpringContextConfigurations

public SpringContextConfigurations()
Method Detail

getServerOnlyContextFiles

public static List<String> getServerOnlyContextFiles()
Returns:
the spring context configuration files only required for 3-tier mode.

getSharedContextFiles

public static List<String> getSharedContextFiles()
Returns:
the spring context configuration files required for both 3-tier and client server mode.

getLocalModeOnlyContextFiles

public static List<String> getLocalModeOnlyContextFiles()
Returns:
the spring context configuration files only required for client-server mode.

getContextFiles

public static String[] getContextFiles(boolean isThreeTierMode)
takes the isServerMode and decides which set of spring context should be returned. it either return all context , shared and exclusive, for the client server mode or 3-tier mode based on the value of isServerMode

Parameters:
isThreeTierMode - specifies whether the configuration files for the client server mode is required or the files for 3-tier
Returns:
string array containing all the config files

com.im.commons 5.9