|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Infrastructure
Tapestry infrastructure ... key services required by the
IEngine
instance.
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 Resource s
into IAsset s. |
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
IEngineService s. |
ListenerInvoker |
getListenerInvoker()
Service (possibly a pipeline) that will invoke IActionListener objects. |
ListenerMapSource |
getListenerMapSource()
The source for ListenerMap s, 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 StaleLinkException s. |
StaleSessionExceptionPresenter |
getStaleSessionExceptionPresenter()
The service responsible for reporting StaleSessionException s. |
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 |
setLocale(Locale value)
Invoked when the locale for the current thread is changed. |
Method Detail |
---|
void initialize(String mode)
IllegalStateException
- if the Infrastructure has already been initialized.Object getProperty(String propertyName)
IllegalStateException
- if the Infrastructure has not yet been initialized.
org.apache.hivemind.ApplicationRuntimeException
- if no value has been contributed for specified property name.IApplicationSpecification getApplicationSpecification()
IApplicationSpecification
for
the current application.
IPropertySource getApplicationPropertySource()
IPropertySource
configured to search the
application specification, etc. See
tapestry.ApplicationPropertySource
.
IPropertySource getGlobalPropertySource()
IPropertySource
configured to search the
servlet, servlet context, and factory defaults.
ResetEventHub getResetEventHub()
ComponentMessagesSource getComponentMessagesSource()
TemplateSource getTemplateSource()
ISpecificationSource getSpecificationSource()
ObjectPool getObjectPool()
IPageSource getPageSource()
org.apache.hivemind.ClassResolver getClassResolver()
DataSqueezer getDataSqueezer()
IScriptSource getScriptSource()
ServiceMap getServiceMap()
RequestExceptionReporter getRequestExceptionReporter()
ResponseRenderer getResponseRenderer()
LinkFactory getLinkFactory()
ILink
instances for
IEngineService
s.
RequestCycleFactory getRequestCycleFactory()
IEngine
to create instances
of IRequestCycle
.
ApplicationStateManager getApplicationStateManager()
WebRequest getRequest()
WebResponse getResponse()
String getContextPath()
String getApplicationId()
org.apache.hivemind.Resource getContextRoot()
ComponentPropertySource getComponentPropertySource()
void setLocale(Locale value)
IEngine.setLocale(Locale)
String getOutputEncoding()
MarkupWriterSource getMarkupWriterSource()
HTMLDescriber getHTMLDescriber()
ExceptionPresenter getExceptionPresenter()
ListenerMapSource getListenerMapSource()
ListenerMap
s, for
components or other objects.
StaleSessionExceptionPresenter getStaleSessionExceptionPresenter()
StaleSessionException
s.
StaleLinkExceptionPresenter getStaleLinkExceptionPresenter()
StaleLinkException
s.
ValueConverter getValueConverter()
ListenerInvoker getListenerInvoker()
IActionListener
objects.
AssetFactory getAssetFactory()
Resource
s
into IAsset
s.
CookieSource getCookieSource()
ClassFinder getClassFinder()
IRequestCycle getRequestCycle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |