|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.yasl.arch.impl.application.YASLApplicationImpl
Implements the YASLApplication interface.
| Field Summary |
| Fields inherited from interface org.yasl.arch.application.YASLApplication |
KEY_ACTION_APPLICATION_EXIT, KEY_ACTION_APPLICATION_START, KEY_ACTION_HANDLER, KEY_APPLICATION, KEY_ERROR_HANDLER, KEY_GUI_APP_ROOTPANE, KEY_PREFERENCES_MANAGER, KEY_RESOURCE_MANAGER, KEY_SWING_APP_FRAME |
| Constructor Summary | |
YASLApplicationImpl(YASLApplicationType appType)
Creates a YASLApplication instance and sets the application type. |
|
| Method Summary | |
protected YASLActionHandler |
createActionHandler()
Creates an action handler that implements YASLActionHandler. |
protected YASLErrorHandler |
createErrorHandler()
Creates an error handler that implements YASLErrorHandler. |
YASLActionHandler |
getActionHandler()
Accessor for the actionhandler interface. |
YASLApplicationType |
getApplicationType()
Returns application type, either gui, command line, or applet. |
YASLErrorHandler |
getErrorHandler()
Returns the error handler for this application. |
YASLResourceManager |
getResourceManager()
Returns the resource manager using the standard resource manager key. |
Object |
getSingleton(String key)
Singletons are stored in a map with items accessed via a key. |
Set |
getSingletonKeys()
Returns a non-modifiable set of keys used to map singletons. |
boolean |
isInitialized(StringBuffer errBuf)
Returns true if the application object is fully initialized. |
boolean |
isSingletonMapped(String key)
Returns true if a singleton is mapped to the passed key. |
void |
setResourceManager(YASLResourceManager rmanager)
Sets the resource manager using the standard resource manager key. |
void |
setSingleton(String key,
Object singleton)
Maps an application-specific object to a key. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public YASLApplicationImpl(YASLApplicationType appType)
appType - YASLApplicationType| Method Detail |
protected YASLErrorHandler createErrorHandler()
protected YASLActionHandler createActionHandler()
public boolean isInitialized(StringBuffer errBuf)
isInitialized in interface YASLApplicationerrBuf - StringBuffer
public YASLActionHandler getActionHandler()
getActionHandler in interface YASLApplicationpublic YASLApplicationType getApplicationType()
getApplicationType in interface YASLApplicationpublic YASLErrorHandler getErrorHandler()
getErrorHandler in interface YASLApplication
public Object getSingleton(String key)
throws YASLApplicationException
getSingleton in interface YASLApplicationkey - String
YASLApplicationExceptionpublic boolean isSingletonMapped(String key)
isSingletonMapped in interface YASLApplicationkey - String
public Set getSingletonKeys()
getSingletonKeys in interface YASLApplication
public void setSingleton(String key,
Object singleton)
throws YASLApplicationException
setSingleton in interface YASLApplicationkey - Stringsingleton - Object
YASLApplicationExceptionpublic YASLResourceManager getResourceManager()
getResourceManager in interface YASLApplication
public void setResourceManager(YASLResourceManager rmanager)
throws YASLApplicationException
setResourceManager in interface YASLApplicationrmanager - YASLResourceManager
YASLApplicationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||