|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.plugin.core.support.AbstractTypeAwareSupport<T>
public abstract class AbstractTypeAwareSupport<T>
Abstract base class to implement types that need access to all beans of a given type from the
ApplicationContext.
| Constructor Summary | |
|---|---|
AbstractTypeAwareSupport()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractTypeAwareSupport()
| Method Detail |
|---|
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>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||