info.magnolia.module.blossom.urimapping
Class AnnotatedVirtualURIMappingExporter

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

public class AnnotatedVirtualURIMappingExporter
extends AbstractBeanDetector

Detects and exposes all methods in a bean annotated with VirtualURIMapper as VirtualURIMappings.

Since:
1.1.1
See Also:
VirtualURIMapper

Constructor Summary
AnnotatedVirtualURIMappingExporter()
           
 
Method Summary
protected  VirtualURIMappingAdapter createMethodAdapter(Method method, Object bean)
           
protected  boolean include(Class<?> beanType, String beanName)
           
protected  boolean isEligibleMethod(Method method)
           
protected  void onBeanDetection(Object bean, String beanName)
           
 
Methods inherited from class info.magnolia.module.blossom.support.AbstractBeanDetector
detectBeans, getApplicationContext, getType, onApplicationEvent, setApplicationContext, setBlossomDispatcher, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatedVirtualURIMappingExporter

public AnnotatedVirtualURIMappingExporter()
Method Detail

include

protected boolean include(Class<?> beanType,
                          String beanName)
Overrides:
include in class AbstractBeanDetector

onBeanDetection

protected void onBeanDetection(Object bean,
                               String beanName)
Specified by:
onBeanDetection in class AbstractBeanDetector

isEligibleMethod

protected boolean isEligibleMethod(Method method)

createMethodAdapter

protected VirtualURIMappingAdapter createMethodAdapter(Method method,
                                                       Object bean)


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