public class NameScoping extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MULTI_SCOPE_MODE_KEY |
Constructor and Description |
---|
NameScoping() |
Modifier and Type | Method and Description |
---|---|
static String |
getCommandNameWithoutGlobalPrefix(org.apache.felix.service.command.CommandSession session,
String key)
Returns the name of the command which can omit the global scope prefix if the command starts with the
same prefix as the current application
|
static boolean |
isGlobalScope(org.apache.felix.service.command.CommandSession session,
String scope)
Returns true if the given scope is the global scope so that it can be hidden from help messages
|
static boolean |
isMultiScopeMode(org.apache.felix.service.command.CommandSession session)
Returns true if we are in multi-scope mode (the default) or if we are in single scope mode which means we
avoid prefixing commands with their scope
|
public static final String MULTI_SCOPE_MODE_KEY
public static String getCommandNameWithoutGlobalPrefix(org.apache.felix.service.command.CommandSession session, String key)
public static boolean isGlobalScope(org.apache.felix.service.command.CommandSession session, String scope)
public static boolean isMultiScopeMode(org.apache.felix.service.command.CommandSession session)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.