org.springframework.extensions.surf.studio
Class WebStudioService

java.lang.Object
  extended by org.springframework.extensions.surf.studio.WebStudioService
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

public class WebStudioService
extends Object
implements org.springframework.context.ApplicationListener, org.springframework.context.ApplicationContextAware

Web Studio spring service

Author:
muzquiano

Field Summary
protected  org.springframework.context.ApplicationContext applicationContext
           
protected  WebStudioStateProvider clientStateProvider
           
protected  Container container
           
protected  org.json.JSONObject overlayConfiguration
           
protected  WebFrameworkServiceRegistry serviceRegistry
           
protected  TaskManager taskManager
           
 
Constructor Summary
WebStudioService()
           
 
Method Summary
protected  void appendSearchPath(String searchPathId, String storeId)
           
protected  void autowire()
          Ensures that Web Studio search path elements are in place
 org.springframework.context.ApplicationContext getApplicationContext()
          Gets the application context.
 WebStudioStateProvider getClientStateProvider()
          Gets the web studio state provider.
static WebStudioService getInstance()
           
 org.json.JSONObject getOverlayConfiguration()
          Gets the overlay configuration.
 TaskManager getTaskManager()
          Gets the task manager.
 WebStudioConfigElement getWebStudioConfiguration()
          Gets the web studio configuration.
protected  void initConfiguration()
           
 void onApplicationEvent(org.springframework.context.ApplicationEvent event)
           
protected  void onBootstrap()
          Initialization of the Web Studio Service bean
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
          Sets the application context.
 void setClientStateProvider(WebStudioStateProvider clientStateProvider)
          Sets the client state provider.
 void setContainer(Container container)
          Sets the container.
 void setServiceRegistry(WebFrameworkServiceRegistry serviceRegistry)
          Sets the service registry.
 void setTaskManager(TaskManager taskManager)
          Sets the task manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

applicationContext

protected org.springframework.context.ApplicationContext applicationContext

serviceRegistry

protected WebFrameworkServiceRegistry serviceRegistry

clientStateProvider

protected WebStudioStateProvider clientStateProvider

taskManager

protected TaskManager taskManager

container

protected Container container

overlayConfiguration

protected org.json.JSONObject overlayConfiguration
Constructor Detail

WebStudioService

public WebStudioService()
Method Detail

getInstance

public static WebStudioService getInstance()

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Sets the application context.

Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Parameters:
applicationContext - the new application context

getApplicationContext

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

Returns:
the application context

setServiceRegistry

public void setServiceRegistry(WebFrameworkServiceRegistry serviceRegistry)
Sets the service registry.

Parameters:
serviceRegistry - the new service registry

setClientStateProvider

public void setClientStateProvider(WebStudioStateProvider clientStateProvider)
Sets the client state provider.

Parameters:
clientStateProvider - the new web client state provider

setTaskManager

public void setTaskManager(TaskManager taskManager)
Sets the task manager.

Parameters:
taskManager - the new task manager

setContainer

public void setContainer(Container container)
Sets the container.

Parameters:
container - the new container

getClientStateProvider

public WebStudioStateProvider getClientStateProvider()
Gets the web studio state provider.

Returns:
the web studio state provider

getTaskManager

public TaskManager getTaskManager()
Gets the task manager.

Returns:
the task manager

getWebStudioConfiguration

public WebStudioConfigElement getWebStudioConfiguration()
Gets the web studio configuration.

Returns:
the web studio configuration

getOverlayConfiguration

public org.json.JSONObject getOverlayConfiguration()
Gets the overlay configuration.

Returns:
the overlay configuration

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 Studio Service bean


autowire

protected void autowire()
Ensures that Web Studio search path elements are in place


appendSearchPath

protected void appendSearchPath(String searchPathId,
                                String storeId)

initConfiguration

protected void initConfiguration()
                          throws org.json.JSONException
Throws:
org.json.JSONException


Copyright © 2009 SpringSource, Inc. All Rights Reserved.