org.zkoss.spring.context.annotation
Class ZkClassPathBeanDefinitionScanner

java.lang.Object
  extended by org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider
      extended by org.springframework.context.annotation.ClassPathBeanDefinitionScanner
          extended by org.zkoss.spring.context.annotation.ZkClassPathBeanDefinitionScanner
All Implemented Interfaces:
org.springframework.context.ResourceLoaderAware

public class ZkClassPathBeanDefinitionScanner
extends org.springframework.context.annotation.ClassPathBeanDefinitionScanner

An enhanced ClassPathBeanDefinitionScanner which not only detects bean candidates on the classpath but also those ZK component fields (with @Resource annotation) defined in such candidate beans annotated as @Controller and with a @AppliedTo associated ZK component. annotation.

Author:
henrichen

Field Summary
 
Fields inherited from class org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider
logger
 
Constructor Summary
ZkClassPathBeanDefinitionScanner(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
           
ZkClassPathBeanDefinitionScanner(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, boolean useDefaultFilters)
           
 
Method Summary
protected  void postProcessBeanDefinition(org.springframework.beans.factory.support.AbstractBeanDefinition beanDefinition, java.lang.String beanName)
          Apply further settings to the given bean definition, beyond the contents retrieved from scanning the component class.
 
Methods inherited from class org.springframework.context.annotation.ClassPathBeanDefinitionScanner
checkCandidate, doScan, getRegistry, isCompatible, registerBeanDefinition, scan, setAutowireCandidatePatterns, setBeanDefinitionDefaults, setBeanNameGenerator, setIncludeAnnotationConfig, setScopedProxyMode, setScopeMetadataResolver
 
Methods inherited from class org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider
addExcludeFilter, addIncludeFilter, findCandidateComponents, getResourceLoader, isCandidateComponent, isCandidateComponent, registerDefaultFilters, resetFilters, resolveBasePackage, setResourceLoader, setResourcePattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZkClassPathBeanDefinitionScanner

public ZkClassPathBeanDefinitionScanner(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
                                        boolean useDefaultFilters)

ZkClassPathBeanDefinitionScanner

public ZkClassPathBeanDefinitionScanner(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
Method Detail

postProcessBeanDefinition

protected void postProcessBeanDefinition(org.springframework.beans.factory.support.AbstractBeanDefinition beanDefinition,
                                         java.lang.String beanName)
Apply further settings to the given bean definition, beyond the contents retrieved from scanning the component class.

Overrides:
postProcessBeanDefinition in class org.springframework.context.annotation.ClassPathBeanDefinitionScanner
Parameters:
beanDefinition - the scanned bean definition
beanName - the generated bean name for the given bean
Throws:
java.lang.ClassNotFoundException


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.