public abstract class AnnotatedObjectFactoryBean<B extends AnnotatedObject> extends org.springframework.beans.factory.config.AbstractFactoryBean<B> implements AnnotatedObject
AbstractFactoryBean
by adding annotations. This will then be passed to the built bean.PROPERTY_NAME
Constructor and Description |
---|
AnnotatedObjectFactoryBean() |
Modifier and Type | Method and Description |
---|---|
B |
createInstance() |
protected abstract B |
doCreateInstance() |
Object |
getAnnotation(QName qName)
Gets the value of specified annotation.
|
Map<QName,Object> |
getAnnotations()
Gets all annotations.
|
void |
setAnnotations(Map<QName,Object> newAnnotations)
Sets annotations to the object.
|
public final Object getAnnotation(QName qName)
AnnotatedObject
getAnnotation
in interface AnnotatedObject
public final Map<QName,Object> getAnnotations()
AnnotatedObject
getAnnotations
in interface AnnotatedObject
public final void setAnnotations(Map<QName,Object> newAnnotations)
AnnotatedObject
setAnnotations
in interface AnnotatedObject
public B createInstance() throws Exception
createInstance
in class org.springframework.beans.factory.config.AbstractFactoryBean<B extends AnnotatedObject>
Exception
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.