public class ControllerEntityLinksFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<ControllerEntityLinks> implements org.springframework.context.ApplicationContextAware
FactoryBean implementation to create ControllerEntityLinks instances looking up controller classes
from an ApplicationContext. The controller types are identified by the annotation type configured.| 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(org.springframework.context.ApplicationContext context) |
void |
setLinkBuilderFactory(LinkBuilderFactory<? extends LinkBuilder> linkBuilderFactory)
Configures the
LinkBuilderFactory to be used to create LinkBuilder instances. |
public 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(org.springframework.context.ApplicationContext context)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<ControllerEntityLinks>getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<ControllerEntityLinks>protected ControllerEntityLinks createInstance() throws Exception
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<ControllerEntityLinks>Exceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class org.springframework.beans.factory.config.AbstractFactoryBean<ControllerEntityLinks>ExceptionCopyright © 2012-2016–2017 Pivotal, Inc.. All rights reserved.