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.ApplicationContextAware
public 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>
Exception
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.beans.factory.config.AbstractFactoryBean<ControllerEntityLinks>
Exception
Copyright © 2012-2014–2019 Pivotal, Inc.. All rights reserved.