|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.application.Application
com.sun.faces.application.ApplicationImpl
org.apache.empire.jsf2.app.FacesApplication
public abstract class FacesApplication
Field Summary | |
---|---|
static String |
APPLICATION_ATTRIBUTE
|
protected TextResolver[] |
textResolvers
|
Fields inherited from class com.sun.faces.application.ApplicationImpl |
---|
defaultRenderKitId, THIS_LIBRARY |
Constructor Summary | |
---|---|
protected |
FacesApplication()
|
protected |
FacesApplication(AppStartupListener startupListener)
|
Method Summary | |
---|---|
void |
addJavascriptCall(javax.faces.context.FacesContext fc,
String function)
|
javax.faces.component.UIComponent |
findComponent(javax.faces.context.FacesContext fc,
String componentId,
javax.faces.component.UIComponent nearComponent)
finds a component from with a given id from a given start component |
protected abstract DataSource |
getAppDataSource(DBDatabase db)
|
protected Connection |
getConnection(DBDatabase db)
returns a connection from the connection pool |
Connection |
getConnectionForRequest(javax.faces.context.FacesContext fc,
DBDatabase db)
Returns a connection for the current Request Method should only be called by BeforeRestoreViewListener once per request! |
Locale |
getContextLocale(javax.faces.context.FacesContext ctx)
returns the active locale for a given FacesContext |
String |
getDefaultControlType(DataType dataType)
returns the default control type for a given data Type |
ResourceBundle |
getResourceBundle(javax.faces.context.FacesContext fc,
String var)
|
TextResolver |
getTextResolver(javax.faces.context.FacesContext ctx)
|
TextResolver |
getTextResolver(Locale locale)
|
String |
getWebRoot()
returns the web context path as returned from ServletContext.getContextPath() |
boolean |
hasError(javax.faces.context.FacesContext fc)
checks if the current context contains an error |
protected abstract void |
init(javax.servlet.ServletContext fc)
|
protected void |
initComplete(javax.servlet.ServletContext servletContext)
|
protected void |
initTextResolvers()
|
void |
onChangeView(javax.faces.context.FacesContext fc,
String viewId)
|
void |
releaseAllConnections(javax.faces.context.FacesContext fc)
|
void |
releaseAllConnections(javax.faces.context.FacesContext fc,
boolean commit)
Releases the current request connection |
protected void |
releaseConnection(DBDatabase db,
Connection conn,
boolean commit)
releases a connection from the connection pool |
void |
releaseConnection(javax.faces.context.FacesContext fc,
DBDatabase db)
|
void |
releaseConnection(javax.faces.context.FacesContext fc,
DBDatabase db,
boolean commit)
|
Methods inherited from class com.sun.faces.application.ApplicationImpl |
---|
addBehavior, addComponent, addConverter, addConverter, addDefaultValidatorId, addELContextListener, addELResolver, addValidator, createBehavior, createComponent, createComponent, createComponent, createComponent, createComponent, createComponent, createConverter, createConverter, createConverterBasedOnClass, createMethodBinding, createValidator, createValueBinding, evaluateExpressionGet, getActionListener, getApplicationELResolvers, getBehaviorIds, getComponentTypes, getConverterIds, getConverterTypes, getDefaultLocale, getDefaultRenderKitId, getDefaultValidatorInfo, getELContextListeners, getELResolver, getExpressionFactory, getMessageBundle, getNavigationHandler, getProjectStage, getPropertyResolver, getResourceHandler, getStateManager, getSupportedLocales, getValidatorIds, getVariableResolver, getViewHandler, newConverter, newThing, publishEvent, publishEvent, removeELContextListener, setActionListener, setDefaultLocale, setDefaultRenderKitId, setMessageBundle, setNavigationHandler, setPropertyResolver, setResourceHandler, setStateManager, setSupportedLocales, setVariableResolver, setViewHandler, subscribeToEvent, subscribeToEvent, unsubscribeFromEvent, unsubscribeFromEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String APPLICATION_ATTRIBUTE
protected TextResolver[] textResolvers
Constructor Detail |
---|
protected FacesApplication(AppStartupListener startupListener)
protected FacesApplication()
Method Detail |
---|
protected abstract DataSource getAppDataSource(DBDatabase db)
protected abstract void init(javax.servlet.ServletContext fc)
protected void initComplete(javax.servlet.ServletContext servletContext)
public void onChangeView(javax.faces.context.FacesContext fc, String viewId)
public void addJavascriptCall(javax.faces.context.FacesContext fc, String function)
public String getWebRoot()
public Locale getContextLocale(javax.faces.context.FacesContext ctx)
public boolean hasError(javax.faces.context.FacesContext fc)
fc
- the FacesContext
public javax.faces.component.UIComponent findComponent(javax.faces.context.FacesContext fc, String componentId, javax.faces.component.UIComponent nearComponent)
fc
- the FacesContextcomponentId
- nearComponent
- a component within the same naming container
public String getDefaultControlType(DataType dataType)
dataType
-
protected void initTextResolvers()
public TextResolver getTextResolver(Locale locale)
public TextResolver getTextResolver(javax.faces.context.FacesContext ctx)
public ResourceBundle getResourceBundle(javax.faces.context.FacesContext fc, String var)
getResourceBundle
in class com.sun.faces.application.ApplicationImpl
Application.getResourceBundle(javax.faces.context.FacesContext,
String)
protected Connection getConnection(DBDatabase db)
protected void releaseConnection(DBDatabase db, Connection conn, boolean commit)
public Connection getConnectionForRequest(javax.faces.context.FacesContext fc, DBDatabase db)
public void releaseAllConnections(javax.faces.context.FacesContext fc, boolean commit)
fc
- commit
- public void releaseAllConnections(javax.faces.context.FacesContext fc)
public void releaseConnection(javax.faces.context.FacesContext fc, DBDatabase db, boolean commit)
public void releaseConnection(javax.faces.context.FacesContext fc, DBDatabase db)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |