public class ControllerEntityLinksFactoryBean extends AbstractFactoryBean<ControllerEntityLinks> implements ApplicationContextAware
FactoryBean implementation to create ControllerEntityLinks instances looking up controller classes
from an ApplicationContext. The controller types are identified by the annotation type configured.loggerOBJECT_TYPE_ATTRIBUTE| Constructor and Description |
|---|
ControllerEntityLinksFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected ControllerEntityLinks |
createInstance() |
Class<?> |
getObjectType() |
void |
setAnnotation(Class<? extends Annotation> annotation)
Configures the annotation type to inspect the
ApplicationContext for beans that carry the given annotation. |
void |
setApplicationContext(ApplicationContext context) |
void |
setLinkBuilderFactory(LinkBuilderFactory<? extends LinkBuilder> linkBuilderFactory)
Configures the
LinkBuilderFactory to be used to create LinkBuilder instances. |
destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingletonpublic void setAnnotation(Class<? extends Annotation> annotation)
ApplicationContext for beans that carry the given annotation.annotation - must not be null.public void setLinkBuilderFactory(LinkBuilderFactory<? extends LinkBuilder> linkBuilderFactory)
LinkBuilderFactory to be used to create LinkBuilder instances.linkBuilderFactory - the linkBuilderFactory to setpublic void setApplicationContext(ApplicationContext context)
setApplicationContext in interface ApplicationContextAware@NonNull public Class<?> getObjectType()
getObjectType in interface FactoryBean<ControllerEntityLinks>getObjectType in class AbstractFactoryBean<ControllerEntityLinks>protected ControllerEntityLinks createInstance()
createInstance in class AbstractFactoryBean<ControllerEntityLinks>public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class AbstractFactoryBean<ControllerEntityLinks>ExceptionCopyright © 2011–2020 Pivotal, Inc.. All rights reserved.