|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.kernel.ComponentBase
com.jcorporate.expresso.kernel.ContainerComponentBase
com.jcorporate.expresso.kernel.DataContext
This class is the code equivilant of the original <context> tag in the older expresso-config files. It is basically a container used to map components to their underlying data sources.
Each data context will have at most one Persistence engine. It could be JDBC, or in the future, EJB, or even CSV files for persistence.
Each data context can use other data contexts for security. This is
set via the securityContext property.
| Constructor Summary | |
DataContext()
The default constructor. |
|
| Method Summary | |
void |
configure(Configuration newConfig)
This is the implementation of the ExpressoComponent configure() component event lifecycle. |
void |
destroy()
Destroy event of the ComponentLifecycle interface. |
String |
getContextDescription()
Retrieves the context description |
Map |
getCustomProperties()
Custom Properties Map that was identical to that of the customProperties in the old Expresso 5 config file. |
String |
getCustomProperty(String key)
Retrieves the custom property by key. |
Boolean |
getHasSetupTables()
Returns a Boolean object value equivilant to the tranditional javabean naming convention. |
String |
getSecurityContext()
Retrieve the name of the security context to use for objects in this data context. |
String |
getSetupValue(String key)
Retrieve a 'setup value'. |
Map |
getSetupValues()
Retrieves a map of all setup values for this data context. |
void |
initialize()
Implementation of the ExpressoComponent initialize() component lifecycle event. |
boolean |
isMailDebug()
|
boolean |
isSetupTables()
Returns a boolean value equivilant to the tranditional javabean naming convention. |
void |
reconfigure(Configuration newConfig)
Reconfiguration implementation of the Expresso event lifecycles. |
void |
setContextDescription(String contextDescription)
Sets the context description. |
void |
setHasSetupTables(Boolean hasSetupTables)
Sets the 'Has Setup Tables' parameter. |
void |
setMailDebug(boolean mailDebug)
|
void |
setMailDebug(Boolean mailDebug)
Sets whether emailings performed from the system should be debugged or not. |
void |
setSecurityContext(String newValue)
Sets the security context for this data context. |
void |
setSetupValue(String key,
String object)
Sets the particular setup value to the specified string. |
| Methods inherited from class com.jcorporate.expresso.kernel.ContainerComponentBase |
getContainerImplementation, locateComponent, setContainerImplementation |
| Methods inherited from class com.jcorporate.expresso.kernel.ComponentBase |
getMetaData, getMetadataLocation, getParent, setMetaData, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jcorporate.expresso.kernel.ExpressoComponent |
getMetaData, getParent, setParent |
| Constructor Detail |
public DataContext()
| Method Detail |
public String getSetupValue(String key)
key - the key of the context.
public void setSetupValue(String key,
String object)
key - the key of the setup valueobject - the value of the setup value.public Map getSetupValues()
public void setSecurityContext(String newValue)
newValue - The name of the Security Context to map topublic String getSecurityContext()
public void initialize()
initialize in interface ComponentLifecycle
public void configure(Configuration newConfig)
throws ConfigurationException
configure in interface ComponentLifecyclenewConfig - The 'read only' configuration bean that provides all
the seutp values.
ConfigurationException - upon error.
public void reconfigure(Configuration newConfig)
throws ConfigurationException
reconfigure in interface ComponentLifecyclenewConfig - The 'read only' configuration bean that provides all
the seutp values.
ConfigurationException - upon errorpublic void destroy()
destroy in interface ComponentLifecyclepublic void setHasSetupTables(Boolean hasSetupTables)
hasSetupTables - Boolean value if it does.public boolean isSetupTables()
public Boolean getHasSetupTables()
public void setContextDescription(String contextDescription)
contextDescription - The name of the contextpublic String getContextDescription()
public Map getCustomProperties()
public String getCustomProperty(String key)
key - the key of the property name to look up
public void setMailDebug(Boolean mailDebug)
mailDebug - boolean if mail should be debuggedpublic void setMailDebug(boolean mailDebug)
public boolean isMailDebug()
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||