|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.services.impl.InfrastructureImpl
public class InfrastructureImpl
Allows access to selected HiveMind services.
| Constructor Summary | |
|---|---|
InfrastructureImpl()
|
|
| Method Summary | |
|---|---|
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. |
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. |
String |
getOutputEncoding()
|
IPageSource |
getPageSource()
Returns the source for pages. |
Object |
getProperty(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(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(Locale locale)
Invoked when the locale for the current thread is changed. |
void |
setLocaleManager(RequestLocaleManager manager)
|
void |
setNormalContributions(List normalContributions)
|
void |
setOverrideContributions(List overrideContributions)
|
void |
setThreadLocale(org.apache.hivemind.service.ThreadLocale threadLocale)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InfrastructureImpl()
| Method Detail |
|---|
public void setLocale(Locale locale)
Infrastructure
setLocale in interface InfrastructureIEngine.setLocale(Locale)public String getApplicationId()
Infrastructure
getApplicationId 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()
Infrastructure
getApplicationStateManager in interface Infrastructurepublic org.apache.hivemind.ClassResolver getClassResolver()
Infrastructure
getClassResolver in interface Infrastructurepublic ComponentMessagesSource getComponentMessagesSource()
Infrastructure
getComponentMessagesSource in interface Infrastructurepublic ComponentPropertySource getComponentPropertySource()
Infrastructure
getComponentPropertySource in interface Infrastructurepublic String getContextPath()
Infrastructure
getContextPath in interface Infrastructurepublic org.apache.hivemind.Resource getContextRoot()
Infrastructure
getContextRoot in interface Infrastructurepublic DataSqueezer getDataSqueezer()
Infrastructure
getDataSqueezer 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()
Infrastructure
getObjectPool in interface Infrastructurepublic IPageSource getPageSource()
Infrastructure
getPageSource in interface Infrastructurepublic WebRequest getRequest()
Infrastructure
getRequest in interface Infrastructurepublic RequestCycleFactory getRequestCycleFactory()
InfrastructureIEngine to create instances
of IRequestCycle.
getRequestCycleFactory in interface Infrastructurepublic RequestExceptionReporter getRequestExceptionReporter()
Infrastructure
getRequestExceptionReporter in interface Infrastructurepublic ResetEventHub getResetEventHub()
Infrastructure
getResetEventHub in interface Infrastructurepublic WebResponse getResponse()
Infrastructure
getResponse in interface Infrastructurepublic ResponseRenderer getResponseRenderer()
Infrastructure
getResponseRenderer in interface Infrastructurepublic IScriptSource getScriptSource()
Infrastructure
getScriptSource in interface Infrastructurepublic ServiceMap getServiceMap()
Infrastructure
getServiceMap in interface Infrastructurepublic ISpecificationSource getSpecificationSource()
Infrastructure
getSpecificationSource in interface Infrastructurepublic TemplateSource getTemplateSource()
Infrastructure
getTemplateSource in interface Infrastructurepublic String getOutputEncoding()
getOutputEncoding in interface Infrastructurepublic MarkupWriterSource getMarkupWriterSource()
getMarkupWriterSource in interface Infrastructurepublic HTMLDescriber getHTMLDescriber()
getHTMLDescriber in interface Infrastructurepublic ExceptionPresenter getExceptionPresenter()
Infrastructure
getExceptionPresenter 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()
Infrastructure
getValueConverter in interface Infrastructurepublic ListenerInvoker getListenerInvoker()
InfrastructureIActionListener objects.
getListenerInvoker in interface Infrastructurepublic AssetFactory getAssetFactory()
InfrastructureResources
into IAssets.
getAssetFactory in interface Infrastructurepublic CookieSource getCookieSource()
Infrastructure
getCookieSource in interface Infrastructurepublic ClassFinder getClassFinder()
Infrastructure
getClassFinder in interface Infrastructurepublic IRequestCycle getRequestCycle()
Infrastructure
getRequestCycle in interface Infrastructurepublic Object getProperty(String propertyName)
Infrastructure
getProperty in interface Infrastructurepublic void initialize(String mode)
Infrastructure
initialize in interface Infrastructurepublic void setClassResolver(org.apache.hivemind.ClassResolver classResolver)
public void setThreadLocale(org.apache.hivemind.service.ThreadLocale threadLocale)
public void setNormalContributions(List normalContributions)
public void setOverrideContributions(List overrideContributions)
public void setLocaleManager(RequestLocaleManager manager)
public void setErrorLog(org.apache.hivemind.ErrorLog errorLog)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||