Class SpringConfigurationProcessor
- java.lang.Object
- 
- org.eclipse.jetty.spring.SpringConfigurationProcessor
 
- 
- All Implemented Interfaces:
- ConfigurationProcessor
 
 @Deprecated public class SpringConfigurationProcessor extends java.lang.Object implements ConfigurationProcessor Deprecated.Has been removed in Jetty 10+Spring ConfigurationProcessorA ConfigurationProcessorthat uses a spring XML file to emulate theXmlConfigurationformat.XmlConfigurationexpects a primary object that is either passed in to a call toconfigure(Object)or that is constructed by a call toconfigure(). This processor looks for a bean definition with an id, name or alias of "Main" as uses that as the primary bean.The objects mapped by XmlConfiguration.getIdMap()are set as singletons before any configuration calls and if the spring configuration file contains a definition for the singleton id, the the singleton is updated with a call toAbstractAutowireCapableBeanFactory.configureBean(Object, String).The property map obtained via XmlConfiguration.getProperties()is set as a singleton called "properties" and values can be accessed by somewhat verbose usage ofMethodInvokingFactoryBean.This processor is returned by the SpringConfigurationProcessorFactoryfor any XML document whos first element is "beans". The factory is discovered by aServiceLoaderforConfigurationProcessorFactory.
- 
- 
Constructor SummaryConstructors Constructor Description SpringConfigurationProcessor()Deprecated.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Objectconfigure()Deprecated.Return a configured bean.java.lang.Objectconfigure(java.lang.Object obj)Deprecated.voidinit(java.net.URL url, XmlParser.Node root, XmlConfiguration configuration)Deprecated.voidinit(Resource jettyResource, XmlParser.Node config, XmlConfiguration configuration)Deprecated.Initialize a ConfigurationProcessor from provided Resource and XML
 
- 
- 
- 
Method Detail- 
initpublic void init(java.net.URL url, XmlParser.Node root, XmlConfiguration configuration)Deprecated.- Specified by:
- initin interface- ConfigurationProcessor
 
 - 
initpublic void init(Resource jettyResource, XmlParser.Node config, XmlConfiguration configuration) Deprecated.Description copied from interface:ConfigurationProcessorInitialize a ConfigurationProcessor from provided Resource and XML- Specified by:
- initin interface- ConfigurationProcessor
- Parameters:
- jettyResource- the resource being read
- config- the parsed XML root node for the resource
- configuration- the configuration being used (typically for ref IDs)
 
 - 
configurepublic java.lang.Object configure(java.lang.Object obj) throws java.lang.ExceptionDeprecated.- Specified by:
- configurein interface- ConfigurationProcessor
- Throws:
- java.lang.Exception
 
 - 
configurepublic java.lang.Object configure() throws java.lang.ExceptionDeprecated.Return a configured bean. If a bean has the id or alias of "Main", then it is returned, otherwise the first bean in the file is returned.- Specified by:
- configurein interface- ConfigurationProcessor
- Throws:
- java.lang.Exception
- See Also:
- ConfigurationProcessor.configure()
 
 
- 
 
-