org.springmodules.validation.util.context
Class BasicContextAware

java.lang.Object
  extended by org.springmodules.validation.util.context.BasicContextAware
All Implemented Interfaces:
BeanFactoryAware, ApplicationContextAware, ApplicationEventPublisherAware, MessageSourceAware, ResourceLoaderAware, ContextAware
Direct Known Subclasses:
SimpleValidationRuleElementHandlerRegistry

public class BasicContextAware
extends Object
implements ContextAware

Author:
Uri Boness

Field Summary
protected  ApplicationContext applicationContext
           
protected  ApplicationEventPublisher applicationEventPublisher
           
protected  BeanFactory beanFactory
           
protected  MessageSource messageSource
           
protected  ResourceLoader resourceLoader
           
 
Constructor Summary
BasicContextAware()
           
 
Method Summary
protected  void initLifecycle(BasicContextAware object)
           
protected  void initLifecycle(Object object)
           
 void setApplicationContext(ApplicationContext applicationContext)
          Implementation of ApplicationContextAware.
 void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
          Implementation of ApplicationEventPublisherAware.
 void setBeanFactory(BeanFactory beanFactory)
          Implementation of BeanFactoryAware.
 void setMessageSource(MessageSource messageSource)
          Implementation of MessageSourceAware.
 void setResourceLoader(ResourceLoader resourceLoader)
          Implementation of ResourceLoaderAware.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

applicationContext

protected ApplicationContext applicationContext

beanFactory

protected BeanFactory beanFactory

resourceLoader

protected ResourceLoader resourceLoader

messageSource

protected MessageSource messageSource

applicationEventPublisher

protected ApplicationEventPublisher applicationEventPublisher
Constructor Detail

BasicContextAware

public BasicContextAware()
Method Detail

setBeanFactory

public void setBeanFactory(BeanFactory beanFactory)
                    throws BeansException
Implementation of BeanFactoryAware.

Specified by:
setBeanFactory in interface BeanFactoryAware
Throws:
BeansException

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
                           throws BeansException
Implementation of ApplicationContextAware.

Specified by:
setApplicationContext in interface ApplicationContextAware
Throws:
BeansException

setResourceLoader

public void setResourceLoader(ResourceLoader resourceLoader)
Implementation of ResourceLoaderAware.

Specified by:
setResourceLoader in interface ResourceLoaderAware

setMessageSource

public void setMessageSource(MessageSource messageSource)
Implementation of MessageSourceAware.

Specified by:
setMessageSource in interface MessageSourceAware

setApplicationEventPublisher

public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
Implementation of ApplicationEventPublisherAware.

Specified by:
setApplicationEventPublisher in interface ApplicationEventPublisherAware

initLifecycle

protected void initLifecycle(BasicContextAware object)

initLifecycle

protected void initLifecycle(Object object)


Copyright © 2009. All Rights Reserved.