|
SRJRCFrames v0.1.296 |
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
AppMain |
class for the applications common main function and the base for resource configuration. Resource configuration (package-prefix is 'res') is divided into
ApplicationContext
- (subdirectory 'ctx')ApplicationContext
. This separation has been made for
convenience, but you're free to change it to what you like. ApplicationContext
:
DataSource
, TransactionManager
and EntityManager
definitions.de.schwarzrot.main.app.AppMain
is an application for the operating
system. But from the point of view of SR-Richclient-Framework it is
only a sceleton usable to load other applications. That "loadable"
applications can be compiled in like the Sample app, or they may be loaded
from separate jars. Those applications run in the same process than the
sceleton, so they form just a virtual unit. To distinguish these both
"applications", I refer to the sceleton as application and to the virtual
units as 'loadable applications' (even if they are compiled in like the
Sample
application.
So this file application-context.xml
is to configure the sceleton -
the application base.
Definitions from business-layer.xml and security-context.xml are available, so here alle parts will be assembled to form a valid setup.
Important definitions include the MessageSource
, Repository
and of cause the application services.
MessageResource
s - (subdirectory 'ui')MessageSource
entry in the
ApplicationContext
. An entry
<value>de.schwarzrot.main.app.ui.messages</value>
means, that the default name is called 'messages.properties'. Localized files may be 'messages_de.properties' or 'messages_es.properties' ...
see java.util.ResourceBundle
for further details on
localization.
ImageResources
- (subdirectory 'ui')An image resouce entry may look like
Sample.FILE_READ.large.icon=/images/32x32/transform.pngwhich is a toolbar icon definition for the loadable application 'Sample' and its
Action
FILE_READ.
|
SRJRCFrames v0.1.296 |
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |