public class AnnotationBasedNodeVisitorsFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<List<NodeVisitor>> implements ComponentManagerAware, org.springframework.web.context.ServletContextAware
Constructor and Description |
---|
AnnotationBasedNodeVisitorsFactoryBean() |
Modifier and Type | Method and Description |
---|---|
protected List<NodeVisitor> |
createInstance() |
List<NodeVisitor> |
createNodeVisitors(List<Class<? extends NodeVisitor>> annotatedClasses) |
static List<Class<? extends NodeVisitor>> |
getAnnotatedClasses(ClasspathResourceScanner resourceScanner,
String... locationPatterns) |
String |
getAnnotatedClassesInitParam() |
String |
getAnnotatedClassesResourcePath() |
ClasspathResourceScanner |
getClasspathResourceScanner() |
Class<?> |
getObjectType() |
void |
setAnnotatedClassesInitParam(String annotatedClassesInitParam) |
void |
setAnnotatedClassesResourcePath(String annotatedClassesResourcePath) |
void |
setClasspathResourceScanner(ClasspathResourceScanner classpathResourceScanner) |
void |
setComponentManager(ComponentManager componentManager)
Sets the component manager
|
void |
setServletContext(javax.servlet.ServletContext servletContext) |
public AnnotationBasedNodeVisitorsFactoryBean()
public ClasspathResourceScanner getClasspathResourceScanner()
public void setClasspathResourceScanner(ClasspathResourceScanner classpathResourceScanner)
public String getAnnotatedClassesInitParam()
public void setAnnotatedClassesInitParam(String annotatedClassesInitParam)
public String getAnnotatedClassesResourcePath()
public void setAnnotatedClassesResourcePath(String annotatedClassesResourcePath)
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<List<NodeVisitor>>
getObjectType
in class org.springframework.beans.factory.config.AbstractFactoryBean<List<NodeVisitor>>
public void setComponentManager(ComponentManager componentManager)
ComponentManagerAware
setComponentManager
in interface ComponentManagerAware
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext
in interface org.springframework.web.context.ServletContextAware
protected List<NodeVisitor> createInstance() throws Exception
createInstance
in class org.springframework.beans.factory.config.AbstractFactoryBean<List<NodeVisitor>>
Exception
public static List<Class<? extends NodeVisitor>> getAnnotatedClasses(ClasspathResourceScanner resourceScanner, String... locationPatterns) throws IOException
IOException
public List<NodeVisitor> createNodeVisitors(List<Class<? extends NodeVisitor>> annotatedClasses)
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.