|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.beans.factory.GenericBeanFactoryAccessor
public class GenericBeanFactoryAccessor extends java.lang.Object
A fork of the Spring 2.5.6 GenericBeanFactoryAccess class that was removed from Spring 3.0.
Constructor Summary | |
GenericBeanFactoryAccessor(org.springframework.beans.factory.ListableBeanFactory beanFactory)
Constructs a |
Method Summary | |
---|---|
A
|
findAnnotationOnBean(java.lang.String beanName, java.lang.Class annotationType)
Find a java.lang.annotation.Annotation of |
java.lang.Object
|
getBean(java.lang.String name)
@see org.springframework.beans.factory.BeanFactory#getBean(String) |
java.lang.Object
|
getBean(java.lang.String name, java.lang.Class requiredType)
@see org.springframework.beans.factory.BeanFactory#getBean(String, Class) |
org.springframework.beans.factory.ListableBeanFactory
|
getBeanFactory()
Return the wrapped org.springframework.beans.factory.ListableBeanFactory. |
java.util.Map
|
getBeansOfType(java.lang.Class type)
@see ListableBeanFactory#getBeansOfType(Class) |
java.util.Map
|
getBeansOfType(java.lang.Class type, boolean includeNonSingletons, boolean allowEagerInit)
@see ListableBeanFactory#getBeansOfType(Class, boolean, boolean) |
java.util.Map
|
getBeansWithAnnotation(java.lang.Class annotationType)
Find all beans whose |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
public GenericBeanFactoryAccessor(org.springframework.beans.factory.ListableBeanFactory beanFactory)
GenericBeanFactoryAccessor
that wraps the supplied org.springframework.beans.factory.ListableBeanFactory.
Method Detail |
---|
public A findAnnotationOnBean(java.lang.String beanName, java.lang.Class annotationType)
annotationType
on the specified
bean, traversing its interfaces and super classes if no annotation can be
found on the given class itself, as well as checking its raw bean class
if not found on the exposed bean reference (e.g. in case of a proxy).
beanName
- the name of the bean to look for annotations onannotationType
- the annotation class to look fornull
@SuppressWarnings("unchecked") public java.lang.Object getBean(java.lang.String name)
public java.lang.Object getBean(java.lang.String name, java.lang.Class requiredType)
public final org.springframework.beans.factory.ListableBeanFactory getBeanFactory()
public java.util.Map getBeansOfType(java.lang.Class type)
public java.util.Map getBeansOfType(java.lang.Class type, boolean includeNonSingletons, boolean allowEagerInit)
public java.util.Map getBeansWithAnnotation(java.lang.Class annotationType)
Class
has the supplied java.lang.annotation.Annotation type.
annotationType
- the type of annotation to look for
Groovy Documentation