|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tapestry.services.impl.InfrastructureImpl
Allows access to selected HiveMind services.
Constructor Summary | |
InfrastructureImpl()
|
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). |
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. |
DataSqueezer |
getDataSqueezer()
The DataSqueezer, used when constructing and decoding values stored in URLs (as query parameters or hidden form fields). |
IPropertySource |
getGlobalPropertySource()
Returns an IPropertySource configured to search
the servlet, servlet context, and factory defaults. |
LinkFactory |
getLinkFactory()
Constructs ILink instances for
IEngineService s. |
ObjectPool |
getObjectPool()
Returns a generic, shared ObjectPool instance. |
IPageSource |
getPageSource()
Returns the source for pages. |
javax.servlet.http.HttpServletRequest |
getRequest()
Returns the request for the current request. |
RequestCycleFactory |
getRequestCycleFactory()
Used by the IEngine to create instances of
IRequestCycle . |
RequestExceptionReporter |
getRequestExceptionReporter()
Service used to report exceptions to the console. |
ResetEventCoordinator |
getResetEventCoordinator()
Returns the coordinator to be notified of reset events (which will, in turn, notify other services). |
javax.servlet.http.HttpServletResponse |
getResponse()
Returns the response for the current request. |
ResponseRenderer |
getResponseRenderer()
Renders the active page as the response. |
IScriptSource |
getScriptSource()
The source for read-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. |
TemplateSource |
getTemplateSource()
Returns component or page template contents. |
void |
setApplicationId(java.lang.String applicationId)
|
void |
setApplicationPropertySource(IPropertySource source)
|
void |
setApplicationSpecification(IApplicationSpecification specification)
|
void |
setApplicationStateManager(ApplicationStateManager applicationStateManager)
|
void |
setClassResolver(org.apache.hivemind.ClassResolver resolver)
|
void |
setComponentMessagesSource(ComponentMessagesSource source)
|
void |
setComponentPropertySource(ComponentPropertySource componentPropertySource)
|
void |
setContext(javax.servlet.ServletContext context)
|
void |
setDataSqueezer(DataSqueezer dataSqueezer)
|
void |
setGlobalPropertySource(IPropertySource globalPropertySource)
|
void |
setLinkFactory(LinkFactory linkFactory)
|
void |
setObjectPool(ObjectPool pool)
|
void |
setPageSource(IPageSource source)
|
void |
setRequest(javax.servlet.http.HttpServletRequest request)
|
void |
setRequestCycleFactory(RequestCycleFactory requestCycleFactory)
|
void |
setRequestExceptionReporter(RequestExceptionReporter requestExceptionReporter)
|
void |
setResetEventCoordinator(ResetEventCoordinator coordinator)
|
void |
setResponse(javax.servlet.http.HttpServletResponse response)
|
void |
setResponseRenderer(ResponseRenderer responseRenderer)
|
void |
setScriptSource(IScriptSource scriptSource)
|
void |
setServiceMap(ServiceMap serviceMap)
|
void |
setSpecificationSource(ISpecificationSource source)
|
void |
setTemplateSource(TemplateSource source)
|
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 IScriptSource getScriptSource()
Infrastructure
getScriptSource
in interface Infrastructure
public void setScriptSource(IScriptSource scriptSource)
public DataSqueezer getDataSqueezer()
Infrastructure
getDataSqueezer
in interface Infrastructure
public void setDataSqueezer(DataSqueezer dataSqueezer)
public void setApplicationPropertySource(IPropertySource source)
public IPropertySource getApplicationPropertySource()
Infrastructure
IPropertySource
configured to search the application specification, etc.
See tapestry.ApplicationPropertySource
.
getApplicationPropertySource
in interface Infrastructure
public ComponentMessagesSource getComponentMessagesSource()
Infrastructure
getComponentMessagesSource
in interface Infrastructure
public ResetEventCoordinator getResetEventCoordinator()
Infrastructure
getResetEventCoordinator
in interface Infrastructure
public void setComponentMessagesSource(ComponentMessagesSource source)
public void setResetEventCoordinator(ResetEventCoordinator coordinator)
public TemplateSource getTemplateSource()
Infrastructure
getTemplateSource
in interface Infrastructure
public void setTemplateSource(TemplateSource source)
public ISpecificationSource getSpecificationSource()
Infrastructure
getSpecificationSource
in interface Infrastructure
public void setSpecificationSource(ISpecificationSource source)
public ObjectPool getObjectPool()
Infrastructure
getObjectPool
in interface Infrastructure
public void setObjectPool(ObjectPool pool)
public IApplicationSpecification getApplicationSpecification()
Infrastructure
IApplicationSpecification
for the current
application.
getApplicationSpecification
in interface Infrastructure
public void setApplicationSpecification(IApplicationSpecification specification)
public IPageSource getPageSource()
Infrastructure
getPageSource
in interface Infrastructure
public void setPageSource(IPageSource source)
public org.apache.hivemind.ClassResolver getClassResolver()
Infrastructure
getClassResolver
in interface Infrastructure
public void setClassResolver(org.apache.hivemind.ClassResolver resolver)
public ServiceMap getServiceMap()
Infrastructure
getServiceMap
in interface Infrastructure
public void setServiceMap(ServiceMap serviceMap)
public RequestExceptionReporter getRequestExceptionReporter()
Infrastructure
getRequestExceptionReporter
in interface Infrastructure
public void setRequestExceptionReporter(RequestExceptionReporter requestExceptionReporter)
public ResponseRenderer getResponseRenderer()
Infrastructure
getResponseRenderer
in interface Infrastructure
public void setResponseRenderer(ResponseRenderer responseRenderer)
public LinkFactory getLinkFactory()
Infrastructure
ILink
instances for
IEngineService
s.
getLinkFactory
in interface Infrastructure
public void setLinkFactory(LinkFactory linkFactory)
public RequestCycleFactory getRequestCycleFactory()
Infrastructure
IEngine
to create instances of
IRequestCycle
.
getRequestCycleFactory
in interface Infrastructure
public void setRequestCycleFactory(RequestCycleFactory requestCycleFactory)
public ApplicationStateManager getApplicationStateManager()
Infrastructure
getApplicationStateManager
in interface Infrastructure
public void setApplicationStateManager(ApplicationStateManager applicationStateManager)
public javax.servlet.http.HttpServletRequest getRequest()
Infrastructure
getRequest
in interface Infrastructure
public void setRequest(javax.servlet.http.HttpServletRequest request)
public javax.servlet.http.HttpServletResponse getResponse()
Infrastructure
getResponse
in interface Infrastructure
public void setResponse(javax.servlet.http.HttpServletResponse response)
public java.lang.String getContextPath()
Infrastructure
getContextPath
in interface Infrastructure
public java.lang.String getApplicationId()
Infrastructure
getApplicationId
in interface Infrastructure
public void setApplicationId(java.lang.String applicationId)
public void setContext(javax.servlet.ServletContext context)
public org.apache.hivemind.Resource getContextRoot()
Infrastructure
getContextRoot
in interface Infrastructure
public IPropertySource getGlobalPropertySource()
Infrastructure
IPropertySource
configured to search
the servlet, servlet context, and factory defaults.
getGlobalPropertySource
in interface Infrastructure
public void setGlobalPropertySource(IPropertySource globalPropertySource)
public ComponentPropertySource getComponentPropertySource()
Infrastructure
getComponentPropertySource
in interface Infrastructure
public void setComponentPropertySource(ComponentPropertySource componentPropertySource)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |