@Deprecated public class NameScoping extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MULTI_SCOPE_MODE_KEY
Deprecated.
|
| Constructor and Description |
|---|
NameScoping()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getCommandNameWithoutGlobalPrefix(org.apache.felix.service.command.CommandSession session,
String key)
Deprecated.
Return 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)
Deprecated.
Return 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)
Deprecated.
Return 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)
session - The command session.key - The command key.public static boolean isGlobalScope(org.apache.felix.service.command.CommandSession session,
String scope)
session - The command session.scope - The command scope.public static boolean isMultiScopeMode(org.apache.felix.service.command.CommandSession session)
session - The command session.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.