org.kuali.common.util.service
Class DefaultSpringService

java.lang.Object
  extended by org.kuali.common.util.service.DefaultSpringService
All Implemented Interfaces:
SpringService

public class DefaultSpringService
extends Object
implements SpringService


Constructor Summary
DefaultSpringService()
           
 
Method Summary
protected  void addPropertySources(SpringContext context, org.springframework.context.ConfigurableApplicationContext applicationContext)
           
protected  void closeQuietly(org.springframework.context.ConfigurableApplicationContext context)
          Null safe close for a context
protected  org.springframework.context.annotation.AnnotationConfigApplicationContext getAnnotationContext(SpringContext context, org.springframework.context.ConfigurableApplicationContext parent)
           
 org.springframework.context.ConfigurableApplicationContext getContextWithPreRegisteredBean(String beanName, Object bean)
           
 org.springframework.context.ConfigurableApplicationContext getContextWithPreRegisteredBeans(List<String> beanNames, List<Object> beans)
          Return an AbstractApplicationContext with beans and PropertySource's registered as dictated by the SpringContext
protected  List<String> getConvertedLocations(List<String> locations)
          Format file names into fully qualified file system URL's
 List<org.springframework.core.env.PropertySource<?>> getPropertySources(org.springframework.context.ConfigurableApplicationContext context)
           
 List<org.springframework.core.env.PropertySource<?>> getPropertySources(String location)
           
protected  boolean isParentContextRequired(SpringContext context)
          Return true if the context contains any beans or beanNames, false otherwise.
 void load(Class<?> annotatedClass)
           
 void load(Class<?> annotatedClass, String beanName, Object bean)
           
 void load(Class<?> annotatedClass, String beanName, Object bean, org.springframework.core.env.PropertySource<?> propertySource)
           
 void load(SpringContext context)
           
 void load(String location)
           
 void load(String location, String beanName, Object bean)
           
 void load(String location, String beanName, Object bean, org.springframework.core.env.PropertySource<?> propertySource)
           
protected  void refreshQuietly(org.springframework.context.ConfigurableApplicationContext context)
           
protected  void validate(List<String> locations)
          Make sure all of the locations actually exist
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSpringService

public DefaultSpringService()
Method Detail

getPropertySources

public List<org.springframework.core.env.PropertySource<?>> getPropertySources(String location)
Specified by:
getPropertySources in interface SpringService

getPropertySources

public List<org.springframework.core.env.PropertySource<?>> getPropertySources(org.springframework.context.ConfigurableApplicationContext context)
Specified by:
getPropertySources in interface SpringService

load

public void load(Class<?> annotatedClass)
Specified by:
load in interface SpringService

load

public void load(Class<?> annotatedClass,
                 String beanName,
                 Object bean,
                 org.springframework.core.env.PropertySource<?> propertySource)
Specified by:
load in interface SpringService

load

public void load(Class<?> annotatedClass,
                 String beanName,
                 Object bean)
Specified by:
load in interface SpringService

load

public void load(String location)
Specified by:
load in interface SpringService

load

public void load(String location,
                 String beanName,
                 Object bean,
                 org.springframework.core.env.PropertySource<?> propertySource)
Specified by:
load in interface SpringService

load

public void load(String location,
                 String beanName,
                 Object bean)
Specified by:
load in interface SpringService

load

public void load(SpringContext context)
Specified by:
load in interface SpringService

getAnnotationContext

protected org.springframework.context.annotation.AnnotationConfigApplicationContext getAnnotationContext(SpringContext context,
                                                                                                         org.springframework.context.ConfigurableApplicationContext parent)

refreshQuietly

protected void refreshQuietly(org.springframework.context.ConfigurableApplicationContext context)

closeQuietly

protected void closeQuietly(org.springframework.context.ConfigurableApplicationContext context)
Null safe close for a context


getContextWithPreRegisteredBeans

public org.springframework.context.ConfigurableApplicationContext getContextWithPreRegisteredBeans(List<String> beanNames,
                                                                                                   List<Object> beans)
Return an AbstractApplicationContext with beans and PropertySource's registered as dictated by the SpringContext

Specified by:
getContextWithPreRegisteredBeans in interface SpringService

getContextWithPreRegisteredBean

public org.springframework.context.ConfigurableApplicationContext getContextWithPreRegisteredBean(String beanName,
                                                                                                  Object bean)
Specified by:
getContextWithPreRegisteredBean in interface SpringService

addPropertySources

protected void addPropertySources(SpringContext context,
                                  org.springframework.context.ConfigurableApplicationContext applicationContext)

isParentContextRequired

protected boolean isParentContextRequired(SpringContext context)
Return true if the context contains any beans or beanNames, false otherwise.


validate

protected void validate(List<String> locations)
Make sure all of the locations actually exist


getConvertedLocations

protected List<String> getConvertedLocations(List<String> locations)
Format file names into fully qualified file system URL's



Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.