@ProviderType public final class RunMode extends Object
Modifier and Type | Field and Description |
---|---|
static @NotNull String |
AUTHOR
Runmode for author instance
|
static @NotNull String |
PUBLISH
Runmode for publish instance
|
Modifier and Type | Method and Description |
---|---|
static boolean |
disableIfNoRunModeActive(Set<String> runModes,
String[] allowedRunModes,
org.osgi.service.component.ComponentContext componentContext,
org.slf4j.Logger log)
Deprecated.
Instead of directly using the run modes, it is better to make the component in question require a
configuration (see OSGI Declarative Services Spec: configuration policy). In this case, a component
gets only active if a configuration is available. Such a configuration can be put into the repository
for the specific run mode.
|
static boolean |
disableIfNotAuthor(Set<String> runModes,
org.osgi.service.component.ComponentContext componentContext,
org.slf4j.Logger log)
Deprecated.
Instead of directly using the run modes, it is better to make the component in question require a
configuration (see OSGI Declarative Services Spec: configuration policy). In this case, a component
gets only active if a configuration is available. Such a configuration can be put into the repository
for the specific run mode.
|
static boolean |
disableIfNotPublish(Set<String> runModes,
org.osgi.service.component.ComponentContext componentContext,
org.slf4j.Logger log)
Deprecated.
Instead of directly using the run modes, it is better to make the component in question require a
configuration (see OSGI Declarative Services Spec: configuration policy). In this case, a component
gets only active if a configuration is available. Such a configuration can be put into the repository
for the specific run mode.
|
static boolean |
is(Set<String> runModes,
String... expectedRunModes)
Deprecated.
Instead of directly using the run modes, it is better to make the component in question require a
configuration (see OSGI Declarative Services Spec: configuration policy). In this case, a component
gets only active if a configuration is available. Such a configuration can be put into the repository
for the specific run mode.
|
static boolean |
isAuthor(Set<String> runModes)
Deprecated.
Instead of directly using the run modes, it is better to make the component in question require a
configuration (see OSGI Declarative Services Spec: configuration policy). In this case, a component
gets only active if a configuration is available. Such a configuration can be put into the repository
for the specific run mode.
|
static boolean |
isPublish(Set<String> runModes)
Deprecated.
Instead of directly using the run modes, it is better to make the component in question require a
configuration (see OSGI Declarative Services Spec: configuration policy). In this case, a component
gets only active if a configuration is available. Such a configuration can be put into the repository
for the specific run mode.
|
@NotNull public static final @NotNull String AUTHOR
@NotNull public static final @NotNull String PUBLISH
@Deprecated public static boolean is(Set<String> runModes, String... expectedRunModes)
runModes
- Run modes for current instanceexpectedRunModes
- Run mode(s) to check for@Deprecated public static boolean isAuthor(Set<String> runModes)
runModes
- Run modes@Deprecated public static boolean isPublish(Set<String> runModes)
runModes
- Run modes@Deprecated public static boolean disableIfNoRunModeActive(Set<String> runModes, String[] allowedRunModes, org.osgi.service.component.ComponentContext componentContext, org.slf4j.Logger log)
com.day.cq.commons.RunModeUtil#disableIfNoRunModeActive(RunMode, String[], ComponentContext, Logger)
method which is deprecated.runModes
- Run modesallowedRunModes
- Allowed run modescomponentContext
- OSGI component contextlog
- Logger@Deprecated public static boolean disableIfNotAuthor(Set<String> runModes, org.osgi.service.component.ComponentContext componentContext, org.slf4j.Logger log)
com.day.cq.commons.RunModeUtil#disableIfNoRunModeActive(RunMode, String[], ComponentContext, Logger)
method which is deprecated.runModes
- Run modescomponentContext
- OSGI component contextlog
- Logger@Deprecated public static boolean disableIfNotPublish(Set<String> runModes, org.osgi.service.component.ComponentContext componentContext, org.slf4j.Logger log)
com.day.cq.commons.RunModeUtil#disableIfNoRunModeActive(RunMode, String[], ComponentContext, Logger)
method which is deprecated.runModes
- Run modescomponentContext
- OSGI component contextlog
- LoggerCopyright © 2014–2018 wcm.io. All rights reserved.