org.zkoss.spring.context.annotation
Class ZkClassPathBeanDefinitionScanner
java.lang.Object
org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider
org.springframework.context.annotation.ClassPathBeanDefinitionScanner
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
Fields inherited from class org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider |
logger |
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 |
ZkClassPathBeanDefinitionScanner
public ZkClassPathBeanDefinitionScanner(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
boolean useDefaultFilters)
ZkClassPathBeanDefinitionScanner
public ZkClassPathBeanDefinitionScanner(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
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 definitionbeanName
- the generated bean name for the given bean
- Throws:
java.lang.ClassNotFoundException
Copyright © 2005-2007 Potix Corporation. All Rights Reserved.