public abstract class AbstractTypeAwareSupport<T> extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.beans.factory.InitializingBean
ApplicationContext.| Constructor and Description |
|---|
AbstractTypeAwareSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected List<T> |
getBeans()
Returns all beans from the
ApplicationContext that match the given type. |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
void |
setApplicationContext(org.springframework.context.ApplicationContext context) |
void |
setExclusions(Class<?>[] exclusions)
Configures the types to be excluded from the lookup.
|
void |
setType(Class<T> type)
Configures the type of beans to be looked up.
|
public void setApplicationContext(org.springframework.context.ApplicationContext context)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic void setType(Class<T> type)
type - the type to setpublic void setExclusions(Class<?>[] exclusions)
exclusions - protected List<T> getBeans()
ApplicationContext that match the given type.public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>Copyright © 2008-2015–2015 Pivotal Software, Inc.. All rights reserved.