I have a small server which was in need of a simple console to enter a commands. After a bit of searching i found spring shell, which does the job.
Some of my commands need access to the server instance object.
How can i (autowire?) my server object instance into my spring shell command so that i can access my server object instance in a spring shell command?
Bootstrap constructor seem to creating the application context and immediately finds the user shell commands.
I tried to use:
bootstrap.getApplicationContext().getBeanFactory().registerSingleton(class, myserverinstance)
But this can only be done after Bootstrap constructor is called and then it is too late.