info.magnolia.module.blossom.support
Class AbstractBeanDetector

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

public abstract class AbstractBeanDetector
extends Object
implements org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener, BlossomDispatcherAware

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 detectBeans()
           
 org.springframework.context.ApplicationContext getApplicationContext()
           
 Class<?> getType()
           
protected  boolean include(Class<?> beanType, String beanName)
           
 void onApplicationEvent(org.springframework.context.ApplicationEvent event)
           
protected abstract  void onBeanDetection(Object bean, String beanName)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setBlossomDispatcher(BlossomDispatcher dispatcher)
           
 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

setBlossomDispatcher

public void setBlossomDispatcher(BlossomDispatcher dispatcher)
Specified by:
setBlossomDispatcher in interface BlossomDispatcherAware

getType

public Class<?> getType()

setType

public void setType(Class<?> type)

detectBeans

public void detectBeans()

onApplicationEvent

public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener

include

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

onBeanDetection

protected abstract void onBeanDetection(Object bean,
                                        String beanName)


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