org.springframework.extensions.surf
Class AutowireService

java.lang.Object
  extended by org.springframework.extensions.surf.AutowireService
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware

public class AutowireService
extends Object
implements org.springframework.context.ApplicationContextAware

Autowire Service for Surf This service performs autowiring of Surf stores and search paths. Modes - developer, production Runtime - classpath, webapp, local, alfresco

Author:
muzquiano

Constructor Summary
AutowireService()
           
 
Method Summary
protected  void autoWire()
          Called on bootstrap to process autowire Surf configuration
protected  void bindObjectsPersister(String persisterId, String[] persisterIds, String defaultPersisterId)
           
protected  void bindSearchPath(String searchPathId, String[] storeIds)
          Binds a list of stores to a search path Used by autowiring
 org.springframework.context.ApplicationContext getApplicationContext()
          Gets the application context.
 WebFrameworkConfigElement getWebFrameworkConfiguration()
           
 void init()
          Spring Initialization Method
protected  void insertIntoSearchPath(String searchPathId, String storeId, String referenceStoreId, boolean before)
          Inserts a store into a search path
protected  void reportPersister(String persisterId)
           
protected  void reportSearchPath(String searchPathId)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setConfigService(ConfigService configService)
           
protected  String[] spliceArrayElement(String[] array, String element)
          Removes the given element from the array
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutowireService

public AutowireService()
Method Detail

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

getApplicationContext

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

Returns:
the application context

setConfigService

public void setConfigService(ConfigService configService)

getWebFrameworkConfiguration

public WebFrameworkConfigElement getWebFrameworkConfiguration()

init

public void init()
Spring Initialization Method


autoWire

protected void autoWire()
Called on bootstrap to process autowire Surf configuration


bindObjectsPersister

protected void bindObjectsPersister(String persisterId,
                                    String[] persisterIds,
                                    String defaultPersisterId)

bindSearchPath

protected void bindSearchPath(String searchPathId,
                              String[] storeIds)
Binds a list of stores to a search path Used by autowiring

Parameters:
searchPathId -
storeIds -

insertIntoSearchPath

protected void insertIntoSearchPath(String searchPathId,
                                    String storeId,
                                    String referenceStoreId,
                                    boolean before)
Inserts a store into a search path

Parameters:
searchPathId -
storeId -
referenceStoreId -
before -

reportSearchPath

protected void reportSearchPath(String searchPathId)

reportPersister

protected void reportPersister(String persisterId)

spliceArrayElement

protected String[] spliceArrayElement(String[] array,
                                      String element)
Removes the given element from the array

Parameters:
array -
element -
Returns:


Copyright © 2009 SpringSource, Inc. All Rights Reserved.