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