public class InfrastructureImpl extends java.lang.Object implements Infrastructure
| Constructor and Description |
|---|
InfrastructureImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getApplicationId()
Returns the application's id; a unique name that is incorporated into various session
attribute keys and into certain paths when searching for resources.
|
IPropertySource |
getApplicationPropertySource()
Returns an
IPropertySource configured to search the application specification,
etc. |
IApplicationSpecification |
getApplicationSpecification()
Returns the
IApplicationSpecification for the current
application. |
ApplicationStateManager |
getApplicationStateManager()
Accesses application state objects (Visit and Global from Tapestry 3.0, but now more can be
created).
|
AssetFactory |
getAssetFactory()
Service that is used to convert
Resources into
IAssets. |
ClassFinder |
getClassFinder()
Used to search for a class name within a list of packages.
|
org.apache.hivemind.ClassResolver |
getClassResolver()
Returns the ClassResolver used by the Tapestry HiveMind module, which should be sufficient
for use throughout the application.
|
ComponentMessagesSource |
getComponentMessagesSource()
Returns the source of component message bundles.
|
ComponentPropertySource |
getComponentPropertySource()
Returns an object used to access component meta-data properties.
|
java.lang.String |
getContextPath()
Returns the context path, which identifies the application within the application server.
|
org.apache.hivemind.Resource |
getContextRoot()
Returns the root context resource, which is the starting point when looking for resources
within the application.
|
CookieSource |
getCookieSource()
Service used to access HTTP Cookies.
|
DataSqueezer |
getDataSqueezer()
The DataSqueezer, used when constructing and decoding values stored in URLs (as query
parameters or hidden form fields).
|
ExceptionPresenter |
getExceptionPresenter()
Responsible for presenting an exception error report to the user.
|
IPropertySource |
getGlobalPropertySource()
Returns an
IPropertySource configured to search the servlet, servlet context,
and factory defaults. |
HTMLDescriber |
getHTMLDescriber() |
LinkFactory |
getLinkFactory()
Constructs
ILink instances for
IEngineServices. |
ListenerInvoker |
getListenerInvoker()
Service (possibly a pipeline) that will invoke
IActionListener
objects. |
ListenerMapSource |
getListenerMapSource()
The source for
ListenerMaps, for components or other
objects. |
MarkupWriterSource |
getMarkupWriterSource() |
ObjectPool |
getObjectPool()
Returns a generic, shared ObjectPool instance.
|
java.lang.String |
getOutputEncoding() |
IPageSource |
getPageSource()
Returns the source for pages.
|
java.lang.Object |
getProperty(java.lang.String propertyName)
Returns a named property.
|
WebRequest |
getRequest()
Returns the request for the current request cycle.
|
IRequestCycle |
getRequestCycle()
Returns the request cycle for the current thread.
|
RequestCycleFactory |
getRequestCycleFactory()
Used by the
IEngine to create instances of
IRequestCycle. |
RequestExceptionReporter |
getRequestExceptionReporter()
Service used to report exceptions to the console.
|
ResetEventHub |
getResetEventHub()
Returns the coordinator to be notified of reset events (which will, in turn, notify other
services that they should discard cached data).
|
WebResponse |
getResponse()
Returns the response for the current request cycle.
|
ResponseRenderer |
getResponseRenderer()
Renders the active page as the response.
|
IScriptSource |
getScriptSource()
The source for ready-to-execute versions of Tapestry script templates.
|
ServiceMap |
getServiceMap()
The object from which engine services are obtained.
|
ISpecificationSource |
getSpecificationSource()
Returns the source of all application, page, component and library specifications.
|
StaleLinkExceptionPresenter |
getStaleLinkExceptionPresenter()
The service responsible for reporting
StaleLinkExceptions. |
StaleSessionExceptionPresenter |
getStaleSessionExceptionPresenter()
The service responsible for reporting
StaleSessionExceptions. |
TemplateSource |
getTemplateSource()
Returns component or page template contents.
|
ValueConverter |
getValueConverter()
Service used to convert and coerce types.
|
void |
initialize(java.lang.String mode)
Initializes the Infrastructure for a particular mode.
|
void |
setClassResolver(org.apache.hivemind.ClassResolver classResolver) |
void |
setErrorLog(org.apache.hivemind.ErrorLog errorLog) |
void |
setLocale(java.util.Locale locale)
Invoked when the locale for the current thread is changed.
|
void |
setNormalContributions(java.util.List normalContributions) |
void |
setOverrideContributions(java.util.List overrideContributions) |
void |
setThreadLocale(org.apache.hivemind.service.ThreadLocale threadLocale) |
public InfrastructureImpl()
public void setLocale(java.util.Locale locale)
InfrastructuresetLocale in interface InfrastructureIEngine.setLocale(Locale)public java.lang.String getApplicationId()
InfrastructuregetApplicationId in interface Infrastructurepublic IPropertySource getApplicationPropertySource()
InfrastructureIPropertySource configured to search the application specification,
etc. See tapestry.ApplicationPropertySource.getApplicationPropertySource in interface Infrastructurepublic IApplicationSpecification getApplicationSpecification()
InfrastructureIApplicationSpecification for the current
application.getApplicationSpecification in interface Infrastructurepublic ApplicationStateManager getApplicationStateManager()
InfrastructuregetApplicationStateManager in interface Infrastructurepublic org.apache.hivemind.ClassResolver getClassResolver()
InfrastructuregetClassResolver in interface Infrastructurepublic ComponentMessagesSource getComponentMessagesSource()
InfrastructuregetComponentMessagesSource in interface Infrastructurepublic ComponentPropertySource getComponentPropertySource()
InfrastructuregetComponentPropertySource in interface Infrastructurepublic java.lang.String getContextPath()
InfrastructuregetContextPath in interface Infrastructurepublic org.apache.hivemind.Resource getContextRoot()
InfrastructuregetContextRoot in interface Infrastructurepublic DataSqueezer getDataSqueezer()
InfrastructuregetDataSqueezer in interface Infrastructurepublic IPropertySource getGlobalPropertySource()
InfrastructureIPropertySource configured to search the servlet, servlet context,
and factory defaults.getGlobalPropertySource in interface Infrastructurepublic LinkFactory getLinkFactory()
InfrastructureILink instances for
IEngineServices.getLinkFactory in interface Infrastructurepublic ObjectPool getObjectPool()
InfrastructuregetObjectPool in interface Infrastructurepublic IPageSource getPageSource()
InfrastructuregetPageSource in interface Infrastructurepublic WebRequest getRequest()
InfrastructuregetRequest in interface Infrastructurepublic RequestCycleFactory getRequestCycleFactory()
InfrastructureIEngine to create instances of
IRequestCycle.getRequestCycleFactory in interface Infrastructurepublic RequestExceptionReporter getRequestExceptionReporter()
InfrastructuregetRequestExceptionReporter in interface Infrastructurepublic ResetEventHub getResetEventHub()
InfrastructuregetResetEventHub in interface Infrastructurepublic WebResponse getResponse()
InfrastructuregetResponse in interface Infrastructurepublic ResponseRenderer getResponseRenderer()
InfrastructuregetResponseRenderer in interface Infrastructurepublic IScriptSource getScriptSource()
InfrastructuregetScriptSource in interface Infrastructurepublic ServiceMap getServiceMap()
InfrastructuregetServiceMap in interface Infrastructurepublic ISpecificationSource getSpecificationSource()
InfrastructuregetSpecificationSource in interface Infrastructurepublic TemplateSource getTemplateSource()
InfrastructuregetTemplateSource in interface Infrastructurepublic java.lang.String getOutputEncoding()
getOutputEncoding in interface Infrastructurepublic MarkupWriterSource getMarkupWriterSource()
getMarkupWriterSource in interface Infrastructurepublic HTMLDescriber getHTMLDescriber()
getHTMLDescriber in interface Infrastructurepublic ExceptionPresenter getExceptionPresenter()
InfrastructuregetExceptionPresenter in interface Infrastructurepublic ListenerMapSource getListenerMapSource()
InfrastructureListenerMaps, for components or other
objects.getListenerMapSource in interface Infrastructurepublic StaleSessionExceptionPresenter getStaleSessionExceptionPresenter()
InfrastructureStaleSessionExceptions.getStaleSessionExceptionPresenter in interface Infrastructurepublic StaleLinkExceptionPresenter getStaleLinkExceptionPresenter()
InfrastructureStaleLinkExceptions.getStaleLinkExceptionPresenter in interface Infrastructurepublic ValueConverter getValueConverter()
InfrastructuregetValueConverter in interface Infrastructurepublic ListenerInvoker getListenerInvoker()
InfrastructureIActionListener
objects.getListenerInvoker in interface Infrastructurepublic AssetFactory getAssetFactory()
InfrastructureResources into
IAssets.getAssetFactory in interface Infrastructurepublic CookieSource getCookieSource()
InfrastructuregetCookieSource in interface Infrastructurepublic ClassFinder getClassFinder()
InfrastructuregetClassFinder in interface Infrastructurepublic IRequestCycle getRequestCycle()
InfrastructuregetRequestCycle in interface Infrastructurepublic java.lang.Object getProperty(java.lang.String propertyName)
InfrastructuregetProperty in interface Infrastructurepublic void initialize(java.lang.String mode)
Infrastructureinitialize in interface Infrastructurepublic void setClassResolver(org.apache.hivemind.ClassResolver classResolver)
public void setThreadLocale(org.apache.hivemind.service.ThreadLocale threadLocale)
public void setNormalContributions(java.util.List normalContributions)
public void setOverrideContributions(java.util.List overrideContributions)
public void setErrorLog(org.apache.hivemind.ErrorLog errorLog)