|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.application.Application com.ibm.xsp.application.ApplicationEx
public abstract class ApplicationEx
API level method for the application object - users should not directly call methods in the subclasses of ApplicationEx as those methods are not part of the API and are likely to change in name and/or implementation. This class is not intended to be subclassed by other developers (if you have a use-case that requires a subclass let us know; it may be considered in a later release).
Field Summary | |
---|---|
static java.lang.String |
EXTENSION_PROPERTYPROVIDER
|
Constructor Summary | |
---|---|
ApplicationEx()
|
Method Summary | |
---|---|
void |
addApplicationListener(ApplicationListener listener)
Add an application listener. |
void |
addSessionListener(SessionListener listener)
Add a session listener. |
abstract javax.faces.model.DataModel |
createDataModel(java.lang.Object data)
Create a DataModel instance by adapting the specified data object. |
protected abstract com.ibm.xsp.persistence.PersistenceService |
createPersistenceService()
Deprecated. should not be published, should be pushed down to ApplicationExImpl subclass. |
SessionData |
createSessionData(FacesContextEx context)
Deprecated. should not be published, should be pushed down to ApplicationExImpl subclass |
abstract void |
destroy()
Destroy the application, once this call has been made subsequent calls to service are illegal |
abstract java.util.List |
findServices(java.lang.String serviceType)
Return the list of service implementations for a particular service type. |
java.lang.String |
getApplicationId()
Return a unique application id. |
java.util.List<ApplicationListener> |
getApplicationListeners()
Get the application listeners. |
abstract java.lang.String |
getApplicationProperty(java.lang.String name,
java.lang.String defaultValue)
Return the named application property or the specified default value if the property doesn't exist. |
abstract com.ibm.xsp.beanmanagement.FacesBeanManager |
getBeanManager(java.lang.String scope)
|
abstract com.ibm.xsp.controller.FacesController |
getController()
Return the FacesController used by this application |
abstract com.ibm.xsp.factory.FactoryLookup |
getFactoryLookup()
Deprecated. should not be published, should be pushed down to ApplicationExImpl subclass. Not 100% sure of that |
abstract com.ibm.xsp.url.UrlHandler |
getHandler(java.net.URL url)
Deprecated. should not be published, should be pushed down to ApplicationExImpl subclass. |
abstract java.util.Map |
getHandlerMap()
Deprecated. should not be published, should be pushed down to ApplicationExImpl subclass. Should be typed. |
static ApplicationEx |
getInstance()
Return the current ApplicationEx |
static ApplicationEx |
getInstance(javax.faces.context.FacesContext context)
Return the current ApplicationEx |
abstract java.lang.Object |
getObject(java.lang.String key)
Deprecated. should not be published, should be pushed down to ApplicationExImpl subclass |
abstract com.ibm.xsp.persistence.PersistenceService |
getPersistenceService()
Deprecated. should not be published, should be pushed down to ApplicationExImpl subclass. |
abstract java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
Return the named property or the specified default value if the property doesn't exist. |
abstract FacesSharableRegistry |
getRegistry()
Load the meta-data describing XPages tags that are valid within the current application. |
abstract java.util.ResourceBundle |
getResourceBundle(java.lang.String baseName,
java.util.Locale locale)
Load a resource bndle for the specified locale, from the .properties files within the NSF. |
java.util.List<SessionListener> |
getSessionListeners()
Get the session listeners. |
abstract java.util.TimeZone |
getUserTimeZone(javax.faces.context.FacesContext context)
Return the timezone for the current user. |
boolean |
isSupportedRenderKit(java.lang.String renderKitId)
Return true if the specified renderkit is supported by this application. |
abstract void |
putObject(java.lang.String key,
java.lang.Object object)
Deprecated. should not be published, should be pushed down to ApplicationExImpl subclass |
abstract void |
refresh()
Notification that the application should be refreshed. |
void |
removeApplicationListener(ApplicationListener listener)
Remove an application listener. |
abstract void |
removeRegistry()
Unload the registry loaded in getRegistry() . |
void |
removeSessionListener(SessionListener listener)
Remove a session listener. |
abstract void |
setController(com.ibm.xsp.controller.FacesController controller)
Deprecated. should not be published, should be pushed down to ApplicationExImpl subclass |
Methods inherited from class javax.faces.application.Application |
---|
addComponent, addConverter, addConverter, addValidator, createComponent, createComponent, createConverter, createConverter, createMethodBinding, createValidator, createValueBinding, getActionListener, getComponentTypes, getConverterIds, getConverterTypes, getDefaultLocale, getDefaultRenderKitId, getMessageBundle, getNavigationHandler, getPropertyResolver, getStateManager, getSupportedLocales, getValidatorIds, getVariableResolver, getViewHandler, setActionListener, setDefaultLocale, setDefaultRenderKitId, setMessageBundle, setNavigationHandler, setPropertyResolver, setStateManager, setSupportedLocales, setVariableResolver, setViewHandler |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String EXTENSION_PROPERTYPROVIDER
Constructor Detail |
---|
public ApplicationEx()
Method Detail |
---|
public static ApplicationEx getInstance()
public static ApplicationEx getInstance(javax.faces.context.FacesContext context)
public java.util.List<SessionListener> getSessionListeners()
public void addSessionListener(SessionListener listener)
public void removeSessionListener(SessionListener listener)
public java.util.List<ApplicationListener> getApplicationListeners()
public void addApplicationListener(ApplicationListener listener)
public void removeApplicationListener(ApplicationListener listener)
public java.lang.String getApplicationId()
public abstract void refresh()
public boolean isSupportedRenderKit(java.lang.String renderKitId)
public abstract java.util.List findServices(java.lang.String serviceType)
serviceType
- the name of the servicepublic SessionData createSessionData(FacesContextEx context)
public abstract java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
public abstract java.lang.String getApplicationProperty(java.lang.String name, java.lang.String defaultValue)
public abstract java.lang.Object getObject(java.lang.String key)
key
- the object key
public abstract void putObject(java.lang.String key, java.lang.Object object)
key
- the object keyobject
- the object to addpublic abstract void setController(com.ibm.xsp.controller.FacesController controller)
FacesController
to be used by this application.
This method will throw an IllegalStateExecption if the controller is already set.
public abstract com.ibm.xsp.controller.FacesController getController()
FacesController
used by this application
public abstract void destroy()
public abstract java.util.Map getHandlerMap()
UriHandler
map.public abstract com.ibm.xsp.url.UrlHandler getHandler(java.net.URL url)
UriHandler
for the specified string.public abstract com.ibm.xsp.factory.FactoryLookup getFactoryLookup()
FactoryLookup
associated with this application.public abstract javax.faces.model.DataModel createDataModel(java.lang.Object data)
public abstract java.util.ResourceBundle getResourceBundle(java.lang.String baseName, java.util.Locale locale) throws java.io.IOException
java.io.IOException
public abstract com.ibm.xsp.beanmanagement.FacesBeanManager getBeanManager(java.lang.String scope)
FacesBeanManager
for the specified scope,
used by DataSource
s to store the data between requests in
DataContainer
objects.public abstract java.util.TimeZone getUserTimeZone(javax.faces.context.FacesContext context)
context
-
protected abstract com.ibm.xsp.persistence.PersistenceService createPersistenceService()
public abstract com.ibm.xsp.persistence.PersistenceService getPersistenceService()
public abstract FacesSharableRegistry getRegistry()
public abstract void removeRegistry()
getRegistry()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |