Class ConsoleRedirector

java.lang.Object
aQute.remote.agent.ConsoleRedirector
All Implemented Interfaces:
Redirector, Closeable, AutoCloseable

public class ConsoleRedirector extends Object implements Redirector
The Console Redirector redirects System.in, System.out, and System.err to the supervisor. This is of course quite tricky. We have to replace System.* fields and this can only be done if the security allows it. It also requires that if we have multiple agents we need to share the redirecting.