This will be coming as part of my next PR so went ahead and started it
Le 6 nov. 2013 19:48, "Glenn Renfro" <notifications@github.com> a écrit :

> In
> spring-xd-shell/src/test/java/org/springframework/xd/shell/command/ComposedTemplate.java:
>
> > +	 * Remembers created modules, in the form <type>:<name>.
> > +	 */
> > +	private List<String> modules = new ArrayList<>();
> > +
> > +	public String newModule(String name, String definition) {
> > +		CommandResult result = shell.executeCommand(String.format("module compose %s --definition \"%s\"", name,
> > +				definition));
> > +		Matcher matcher = SUCCESS_PATTERN.matcher((CharSequence) result.getResult());
> > +		assertTrue("Module composition apparently failed: " + result.getResult(), matcher.matches());
> > +		String key = matcher.group(2) + ":" + matcher.group(1);
> > +		modules.add(key);
> > +		return key;
> > +	}
> > +
> > +	@Override
> > +	public void cleanup() {
>
> In this case we may not want to implement the Disposable interface if we
> are not using the cleanup command. But rather create a story stating that
> ComposedTemplate should use Disposable.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/spring-projects/spring-xd/pull/389/files#r7473538>
> .
>