You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Roland Hauser (JIRA)" <ji...@apache.org> on 2017/05/29 16:15:04 UTC

[jira] [Updated] (ARIES-1725) Support for Spring-MVC

     [ https://issues.apache.org/jira/browse/ARIES-1725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roland Hauser updated ARIES-1725:
---------------------------------
    Description: 
Currently, a Spring-MVC application cannot be run with Aries Blueprint because no ApplicationContext implementation is available which integrates with the Blueprint-Container. Such a class should implement org.springframework.web.context.ConfigurableWebApplicationContext and must have a parameter-less constructor. That class would be used as follows:

{code}
<servlet>
	<servlet-name>cms</servlet-name>
	<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
	<load-on-startup>1</load-on-startup>
	<init-param>
		<param-name>contextClass</param-name>
		<param-value>org.foo.BlueprintAwareContext</param-value>
	</init-param>
</servlet>
{code}

*Update 29.05.17*
It's not necessary to implemented a full-fledged ConfigurableWebApplicationContext but it seems to be enough when a BeanFactory is implemented which adapts to BlueprintContainer. Started prototyping here: https://github.com/SourcePond/spring-web-blueprint

  was:
Currently, a Spring-MVC application cannot be run with Aries Blueprint because no ApplicationContext implementation is available which integrates with the Blueprint-Container. Such a class should implement org.springframework.web.context.ConfigurableWebApplicationContext and must have a parameter-less constructor. That class would be used as follows:

{code}
<servlet>
	<servlet-name>cms</servlet-name>
	<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
	<load-on-startup>1</load-on-startup>
	<init-param>
		<param-name>contextClass</param-name>
		<param-value>org.foo.BlueprintAwareContext</param-value>
	</init-param>
</servlet>
{code}


> Support for Spring-MVC
> ----------------------
>
>                 Key: ARIES-1725
>                 URL: https://issues.apache.org/jira/browse/ARIES-1725
>             Project: Aries
>          Issue Type: New Feature
>          Components: Blueprint
>    Affects Versions: blueprint-spring-0.3.0
>            Reporter: Roland Hauser
>
> Currently, a Spring-MVC application cannot be run with Aries Blueprint because no ApplicationContext implementation is available which integrates with the Blueprint-Container. Such a class should implement org.springframework.web.context.ConfigurableWebApplicationContext and must have a parameter-less constructor. That class would be used as follows:
> {code}
> <servlet>
> 	<servlet-name>cms</servlet-name>
> 	<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
> 	<load-on-startup>1</load-on-startup>
> 	<init-param>
> 		<param-name>contextClass</param-name>
> 		<param-value>org.foo.BlueprintAwareContext</param-value>
> 	</init-param>
> </servlet>
> {code}
> *Update 29.05.17*
> It's not necessary to implemented a full-fledged ConfigurableWebApplicationContext but it seems to be enough when a BeanFactory is implemented which adapts to BlueprintContainer. Started prototyping here: https://github.com/SourcePond/spring-web-blueprint



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)