Search in sources :

Example 6 with ManagerImpl

use of org.apache.karaf.shell.impl.action.command.ManagerImpl in project karaf by apache.

the class Main method createSessionFactory.

protected SessionFactory createSessionFactory(ThreadIO threadio) {
    SessionFactoryImpl sessionFactory = new SessionFactoryImpl(threadio);
    sessionFactory.register(new ManagerImpl(sessionFactory, sessionFactory));
    return sessionFactory;
}
Also used : ManagerImpl(org.apache.karaf.shell.impl.action.command.ManagerImpl) SessionFactoryImpl(org.apache.karaf.shell.impl.console.SessionFactoryImpl)

Aggregations

ManagerImpl (org.apache.karaf.shell.impl.action.command.ManagerImpl)6 ThreadIOImpl (org.apache.felix.gogo.runtime.threadio.ThreadIOImpl)3 SessionFactoryImpl (org.apache.karaf.shell.impl.console.SessionFactoryImpl)3 ByteArrayInputStream (java.io.ByteArrayInputStream)2 ByteArrayOutputStream (java.io.ByteArrayOutputStream)2 PrintStream (java.io.PrintStream)2 Session (org.apache.karaf.shell.api.console.Session)2 ActionCommand (org.apache.karaf.shell.impl.action.command.ActionCommand)2 HeadlessSessionImpl (org.apache.karaf.shell.impl.console.HeadlessSessionImpl)2 Test (org.junit.Test)2 BufferedReader (java.io.BufferedReader)1 InputStreamReader (java.io.InputStreamReader)1 URL (java.net.URL)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 Map (java.util.Map)1 CopyOnWriteArraySet (java.util.concurrent.CopyOnWriteArraySet)1 CommandProcessor (org.apache.felix.service.command.CommandProcessor)1 Manager (org.apache.karaf.shell.api.action.lifecycle.Manager)1 CommandLoggingFilter (org.apache.karaf.shell.api.console.CommandLoggingFilter)1