|
||||||||||
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 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 |
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 Infrastructure
IEngine.setLocale(Locale)
public String getApplicationId()
Infrastructure
getApplicationId
in interface Infrastructure
public IPropertySource getApplicationPropertySource()
Infrastructure
IPropertySource
configured to search the
application specification, etc. See
tapestry.ApplicationPropertySource
.
getApplicationPropertySource
in interface Infrastructure
public IApplicationSpecification getApplicationSpecification()
Infrastructure
IApplicationSpecification
for
the current application.
getApplicationSpecification
in interface Infrastructure
public ApplicationStateManager getApplicationStateManager()
Infrastructure
getApplicationStateManager
in interface Infrastructure
public org.apache.hivemind.ClassResolver getClassResolver()
Infrastructure
getClassResolver
in interface Infrastructure
public ComponentMessagesSource getComponentMessagesSource()
Infrastructure
getComponentMessagesSource
in interface Infrastructure
public ComponentPropertySource getComponentPropertySource()
Infrastructure
getComponentPropertySource
in interface Infrastructure
public String getContextPath()
Infrastructure
getContextPath
in interface Infrastructure
public org.apache.hivemind.Resource getContextRoot()
Infrastructure
getContextRoot
in interface Infrastructure
public DataSqueezer getDataSqueezer()
Infrastructure
getDataSqueezer
in interface Infrastructure
public IPropertySource getGlobalPropertySource()
Infrastructure
IPropertySource
configured to search the
servlet, servlet context, and factory defaults.
getGlobalPropertySource
in interface Infrastructure
public LinkFactory getLinkFactory()
Infrastructure
ILink
instances for
IEngineService
s.
getLinkFactory
in interface Infrastructure
public ObjectPool getObjectPool()
Infrastructure
getObjectPool
in interface Infrastructure
public IPageSource getPageSource()
Infrastructure
getPageSource
in interface Infrastructure
public WebRequest getRequest()
Infrastructure
getRequest
in interface Infrastructure
public RequestCycleFactory getRequestCycleFactory()
Infrastructure
IEngine
to create instances
of IRequestCycle
.
getRequestCycleFactory
in interface Infrastructure
public RequestExceptionReporter getRequestExceptionReporter()
Infrastructure
getRequestExceptionReporter
in interface Infrastructure
public ResetEventHub getResetEventHub()
Infrastructure
getResetEventHub
in interface Infrastructure
public WebResponse getResponse()
Infrastructure
getResponse
in interface Infrastructure
public ResponseRenderer getResponseRenderer()
Infrastructure
getResponseRenderer
in interface Infrastructure
public IScriptSource getScriptSource()
Infrastructure
getScriptSource
in interface Infrastructure
public ServiceMap getServiceMap()
Infrastructure
getServiceMap
in interface Infrastructure
public ISpecificationSource getSpecificationSource()
Infrastructure
getSpecificationSource
in interface Infrastructure
public TemplateSource getTemplateSource()
Infrastructure
getTemplateSource
in interface Infrastructure
public String getOutputEncoding()
getOutputEncoding
in interface Infrastructure
public MarkupWriterSource getMarkupWriterSource()
getMarkupWriterSource
in interface Infrastructure
public HTMLDescriber getHTMLDescriber()
getHTMLDescriber
in interface Infrastructure
public ExceptionPresenter getExceptionPresenter()
Infrastructure
getExceptionPresenter
in interface Infrastructure
public ListenerMapSource getListenerMapSource()
Infrastructure
ListenerMap
s, for
components or other objects.
getListenerMapSource
in interface Infrastructure
public StaleSessionExceptionPresenter getStaleSessionExceptionPresenter()
Infrastructure
StaleSessionException
s.
getStaleSessionExceptionPresenter
in interface Infrastructure
public StaleLinkExceptionPresenter getStaleLinkExceptionPresenter()
Infrastructure
StaleLinkException
s.
getStaleLinkExceptionPresenter
in interface Infrastructure
public ValueConverter getValueConverter()
Infrastructure
getValueConverter
in interface Infrastructure
public ListenerInvoker getListenerInvoker()
Infrastructure
IActionListener
objects.
getListenerInvoker
in interface Infrastructure
public AssetFactory getAssetFactory()
Infrastructure
Resource
s
into IAsset
s.
getAssetFactory
in interface Infrastructure
public CookieSource getCookieSource()
Infrastructure
getCookieSource
in interface Infrastructure
public ClassFinder getClassFinder()
Infrastructure
getClassFinder
in interface Infrastructure
public IRequestCycle getRequestCycle()
Infrastructure
getRequestCycle
in interface Infrastructure
public Object getProperty(String propertyName)
Infrastructure
getProperty
in interface Infrastructure
public void initialize(String mode)
Infrastructure
initialize
in interface Infrastructure
public 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 |