info.magnolia.module.blossom.support
Class AbstractBeanDetector

java.lang.Object
  extended by info.magnolia.module.blossom.support.AbstractBeanDetector
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
AnnotatedVirtualURIMappingExporter, DialogExporter, VirtualURIMappingExporter

public abstract class AbstractBeanDetector
extends Object
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean

Abstract base class for beans that want to inspect other beans configured in the same bean factory. Will detect lazy-init beans.

Since:
1.1.1

Constructor Summary
AbstractBeanDetector()
           
 
Method Summary
 void afterPropertiesSet()
           
 void detectBeans()
           
 org.springframework.context.ApplicationContext getApplicationContext()
           
 Class<?> getType()
           
protected  boolean include(Class<?> beanType, String beanName)
           
protected abstract  void onBeanDetection(Object bean, String beanName)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setType(Class<?> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBeanDetector

public AbstractBeanDetector()
Method Detail

getApplicationContext

public org.springframework.context.ApplicationContext getApplicationContext()

setApplicationContext

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

getType

public Class<?> getType()

setType

public void setType(Class<?> type)

detectBeans

public void detectBeans()

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

include

protected boolean include(Class<?> beanType,
                          String beanName)

onBeanDetection

protected abstract void onBeanDetection(Object bean,
                                        String beanName)


Copyright © 2009-2011 Magnolia International Ltd.. All Rights Reserved.