|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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
- YASLApplicationTypeMethod Detail |
protected YASLErrorHandler createErrorHandler()
protected YASLActionHandler createActionHandler()
public boolean isInitialized(StringBuffer errBuf)
isInitialized
in interface YASLApplication
errBuf
- StringBuffer
public YASLActionHandler getActionHandler()
getActionHandler
in interface YASLApplication
public YASLApplicationType getApplicationType()
getApplicationType
in interface YASLApplication
public YASLErrorHandler getErrorHandler()
getErrorHandler
in interface YASLApplication
public Object getSingleton(String key) throws YASLApplicationException
getSingleton
in interface YASLApplication
key
- String
YASLApplicationException
public boolean isSingletonMapped(String key)
isSingletonMapped
in interface YASLApplication
key
- String
public Set getSingletonKeys()
getSingletonKeys
in interface YASLApplication
public void setSingleton(String key, Object singleton) throws YASLApplicationException
setSingleton
in interface YASLApplication
key
- Stringsingleton
- Object
YASLApplicationException
public YASLResourceManager getResourceManager()
getResourceManager
in interface YASLApplication
public void setResourceManager(YASLResourceManager rmanager) throws YASLApplicationException
setResourceManager
in interface YASLApplication
rmanager
- YASLResourceManager
YASLApplicationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |