public class CommandProcessorImpl extends Object implements org.apache.felix.service.command.CommandProcessor
Modifier and Type | Field and Description |
---|---|
protected ConcurrentMap<String,Map<Object,Integer>> |
commands |
protected Map<String,Object> |
constants |
protected Set<org.apache.felix.service.command.Converter> |
converters |
protected Set<org.apache.felix.gogo.api.CommandSessionListener> |
listeners |
protected WeakHashMap<org.apache.felix.service.command.CommandSession,Object> |
sessions |
protected boolean |
stopped |
protected org.apache.felix.service.threadio.ThreadIO |
threadIO |
Constructor and Description |
---|
CommandProcessorImpl(org.apache.felix.service.threadio.ThreadIO tio) |
Modifier and Type | Method and Description |
---|---|
void |
addCommand(String scope,
Object target) |
void |
addCommand(String scope,
Object target,
Class<?> functions) |
void |
addCommand(String scope,
Object target,
Class<?> functions,
int ranking) |
void |
addCommand(String scope,
Object target,
String function) |
void |
addCommand(String scope,
Object target,
String function,
int ranking) |
Object |
addConstant(String name,
Object target) |
void |
addConverter(org.apache.felix.service.command.Converter c) |
void |
addListener(org.apache.felix.gogo.api.CommandSessionListener l) |
Object |
convert(Class<?> desiredType,
Object in) |
org.apache.felix.service.command.CommandSession |
createSession(InputStream in,
PrintStream out,
PrintStream err) |
Object |
eval(org.apache.felix.service.command.CommandSession session,
Object[] argv) |
Set<String> |
getCommands() |
void |
removeCommand(Object target) |
void |
removeCommand(String scope,
String function) |
void |
removeCommand(String scope,
String function,
Object target) |
Object |
removeConstant(String name) |
void |
removeConverter(org.apache.felix.service.command.Converter c) |
void |
removeListener(org.apache.felix.gogo.api.CommandSessionListener l) |
void |
stop() |
protected final Set<org.apache.felix.service.command.Converter> converters
protected final Set<org.apache.felix.gogo.api.CommandSessionListener> listeners
protected final ConcurrentMap<String,Map<Object,Integer>> commands
protected final org.apache.felix.service.threadio.ThreadIO threadIO
protected final WeakHashMap<org.apache.felix.service.command.CommandSession,Object> sessions
protected boolean stopped
public CommandProcessorImpl(org.apache.felix.service.threadio.ThreadIO tio)
public org.apache.felix.service.command.CommandSession createSession(InputStream in, PrintStream out, PrintStream err)
createSession
in interface org.apache.felix.service.command.CommandProcessor
public void stop()
public void addConverter(org.apache.felix.service.command.Converter c)
public void removeConverter(org.apache.felix.service.command.Converter c)
public void addListener(org.apache.felix.gogo.api.CommandSessionListener l)
public void removeListener(org.apache.felix.gogo.api.CommandSessionListener l)
public void removeCommand(Object target)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.