XD-2306: Ability to upload modules

A new type of ModuleRegistry that supports saving uploaded modules.
The current behavior is for that registry to not allow deletion of modules which are in exploded form, which is a nice way of not allowing OOTB modules at the moment.

An alternative will be to use a different root folder for uploaded modules
But it's clearly inconsistent to upload custom modules to the main registry
in this case

On Friday, November 21, 2014, Eric Bottard <notifications@github.com> wrote:

> In
> spring-xd-dirt/src/main/resources/META-INF/spring-xd/internal/repositories.xml:
>
> > @@ -14,7 +14,7 @@
> >  	<bean id="moduleRegistry" class="org.springframework.xd.dirt.module.DelegatingModuleRegistry">
> >  		<constructor-arg>
> >  			<list>
> > -				<bean class="org.springframework.xd.dirt.module.ResourceModuleRegistry">
> > +				<bean class="org.springframework.xd.dirt.module.WriteCapableArchiveModuleRegistry">
> >  					<constructor-arg value="${xd.module.home}/" />
>
> And I think that property may be interpreted as "I have some modules that
> I have built myself, I know where they are, they won't budge, but I want a
> clean separation from the ootb xd modules, so that when I upgrade XD,
> they're still there". Which is quite a different requirement from upload
> capability and can be seen a complimentary IMO
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/spring-projects/spring-xd/pull/1295/files#r20720685>.
>