org.springframework.extensions.surf
Class WebFrameworkServiceRegistry

java.lang.Object
  extended by org.springframework.extensions.surf.WebFrameworkServiceRegistry
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener, org.springframework.web.context.ServletContextAware

public class WebFrameworkServiceRegistry
extends Object
implements org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.context.ApplicationListener

Service Registry for Web Framework This service provides getters for all Web Framework services and helper beans.

Author:
muzquiano

Field Summary
static String WEB_FRAMEWORK_SERVICE_REGISTRY_ID
           
 
Constructor Summary
WebFrameworkServiceRegistry()
           
 
Method Summary
 org.springframework.context.ApplicationContext getApplicationContext()
          Gets the application context.
 ConfigService getConfigService()
          Gets the config service.
 ConnectorService getConnectorService()
          Gets the connector service.
static WebFrameworkServiceRegistry getInstance(javax.servlet.ServletContext servletContext)
          Helper method for retrieving the service registry bound to the current application context.
 LinkBuilderFactory getLinkBuilderFactory()
          Gets the link builder factory.
 PageMapperFactory getPageMapperFactory()
          Gets the page mapper factory.
 PresetsManager getPresetsManager()
          Gets the presets manager.
 RemoteConfigElement getRemoteConfiguration()
          Gets the remote configuration.
 RenderService getRenderService()
          Gets the web framework render service.
 RequestContextFactory getRequestContextFactory()
          Gets the request context factory.
 ResourceService getResourceService()
          Gets the resource service.
 ScriptRemote getScriptRemote()
          Gets the script remote.
 javax.servlet.ServletContext getServletContext()
          Gets the servlet context.
 freemarker.ext.servlet.ServletContextHashModel getServletContextHashModel()
          Gets the servlet context hash model.
 freemarker.ext.jsp.TaglibFactory getTaglibFactory()
          Gets the taglib factory.
 TagService getTagService()
          Gets the tag service.
 TemplatesContainer getTemplatesContainer()
          Gets the templates container.
 UserFactory getUserFactory()
          Gets the user factory.
 WebFrameworkConfigElement getWebFrameworkConfiguration()
          Gets the web framework configuration.
 Container getWebFrameworkContainer()
          Gets the web framework container.
 WebFrameworkManager getWebFrameworkManager()
          Gets the web framework manager.
 void onApplicationEvent(org.springframework.context.ApplicationEvent event)
           
protected  void onBootstrap()
          Initialization of the Web Framework Service Registry
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setLinkBuilderFactory(LinkBuilderFactory linkBuilderFactory)
          Sets the link builder factory.
 void setPageMapperFactory(PageMapperFactory pageMapperFactory)
          Sets the page mapper factory.
 void setRequestContextFactory(RequestContextFactory requestContextFactory)
          Sets the request context factory.
 void setServletContext(javax.servlet.ServletContext servletContext)
           
 void setUserFactory(UserFactory userFactory)
          Sets the user factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEB_FRAMEWORK_SERVICE_REGISTRY_ID

public static final String WEB_FRAMEWORK_SERVICE_REGISTRY_ID
See Also:
Constant Field Values
Constructor Detail

WebFrameworkServiceRegistry

public WebFrameworkServiceRegistry()
Method Detail

getInstance

public static WebFrameworkServiceRegistry getInstance(javax.servlet.ServletContext servletContext)
Helper method for retrieving the service registry bound to the current application context.

Returns:

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

setServletContext

public void setServletContext(javax.servlet.ServletContext servletContext)
                       throws org.springframework.beans.BeansException
Specified by:
setServletContext in interface org.springframework.web.context.ServletContextAware
Throws:
org.springframework.beans.BeansException

getApplicationContext

public org.springframework.context.ApplicationContext getApplicationContext()
Gets the application context.

Returns:
the application context

getServletContext

public javax.servlet.ServletContext getServletContext()
Gets the servlet context.

Returns:
the servlet context

setRequestContextFactory

public void setRequestContextFactory(RequestContextFactory requestContextFactory)
Sets the request context factory.

Parameters:
requestContextFactory - the new request context factory

setPageMapperFactory

public void setPageMapperFactory(PageMapperFactory pageMapperFactory)
Sets the page mapper factory.

Parameters:
pageMapperFactory - the new page mapper factory

setLinkBuilderFactory

public void setLinkBuilderFactory(LinkBuilderFactory linkBuilderFactory)
Sets the link builder factory.

Parameters:
linkBuilderFactory - the new link builder factory

setUserFactory

public void setUserFactory(UserFactory userFactory)
Sets the user factory.

Parameters:
userFactory - the new user factory

onApplicationEvent

public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener

onBootstrap

protected void onBootstrap()
Initialization of the Web Framework Service Registry


getConfigService

public ConfigService getConfigService()
Gets the config service.

Returns:
the config service

getWebFrameworkManager

public WebFrameworkManager getWebFrameworkManager()
Gets the web framework manager.

Returns:
the web framework manager

getRenderService

public RenderService getRenderService()
Gets the web framework render service.

Returns:
the web framework render service

getResourceService

public ResourceService getResourceService()
Gets the resource service.

Returns:
the resource service

getTagService

public TagService getTagService()
Gets the tag service.

Returns:
the tag service

getConnectorService

public ConnectorService getConnectorService()
Gets the connector service.

Returns:
the connector service

getPresetsManager

public PresetsManager getPresetsManager()
Gets the presets manager.

Returns:
the presets manager

getScriptRemote

public ScriptRemote getScriptRemote()
Gets the script remote.

Returns:
the script remote

getRemoteConfiguration

public RemoteConfigElement getRemoteConfiguration()
Gets the remote configuration.

Returns:
the remote configuration

getWebFrameworkConfiguration

public WebFrameworkConfigElement getWebFrameworkConfiguration()
Gets the web framework configuration.

Returns:
the web framework configuration

getPageMapperFactory

public PageMapperFactory getPageMapperFactory()
Gets the page mapper factory.

Returns:
the page mapper factory

getLinkBuilderFactory

public LinkBuilderFactory getLinkBuilderFactory()
Gets the link builder factory.

Returns:
the link builder factory

getUserFactory

public UserFactory getUserFactory()
Gets the user factory.

Returns:
the user factory

getRequestContextFactory

public RequestContextFactory getRequestContextFactory()
Gets the request context factory.

Returns:
the request context factory

getWebFrameworkContainer

public Container getWebFrameworkContainer()
Gets the web framework container.

Returns:
the web framework container

getTemplatesContainer

public TemplatesContainer getTemplatesContainer()
Gets the templates container.

Returns:
the templates container

getTaglibFactory

public freemarker.ext.jsp.TaglibFactory getTaglibFactory()
Gets the taglib factory.

Returns:
the taglib factory

getServletContextHashModel

public freemarker.ext.servlet.ServletContextHashModel getServletContextHashModel()
Gets the servlet context hash model.

Returns:
the servlet context hash model


Copyright © 2009 SpringSource, Inc. All Rights Reserved.