public class MuleTogglzFeatureFlaggingUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addMuleTogglzRuntimeFeature(org.mule.runtime.api.config.Feature feature)
Adds a runtime feature as togglz feature.
|
static org.togglz.core.Feature |
getFeature(String featureName)
Gets a
Feature by name. |
static org.togglz.core.repository.FeatureState |
getFeatureState(org.togglz.core.Feature feature) |
static <T extends org.mule.runtime.api.profiling.ProfilingEventContext> |
getFullyQualifiedProfilingEventTypeFeatureIdentifier(org.mule.runtime.api.profiling.type.ProfilingEventType<T> profilingEventType,
String prefix) |
static <T extends org.mule.runtime.api.profiling.ProfilingEventContext> |
getFullyQualifiedProfilingEventTypeIdentifier(org.mule.runtime.api.profiling.type.ProfilingEventType<T> profilingEventType) |
static MuleTogglzManagedArtifactFeatures |
getTogglzManagedArtifactFeatures(String artifactId,
Map<org.mule.runtime.api.config.Feature,Boolean> features)
Registers the runtime features as togglz features.
|
static void |
setFeatureState(org.togglz.core.repository.FeatureState featureState)
Sets the
FeatureState corresponding to a Feature |
static <T> T |
withFeatureUser(org.togglz.core.user.FeatureUser featureUser,
Callable<T> callable)
Executes a
Runnable within the context of a FeatureUser. |
static void |
withFeatureUser(org.togglz.core.user.FeatureUser featureUser,
Runnable runnable)
Executes a runnable within the context of the
FeatureUser. |
public static void addMuleTogglzRuntimeFeature(org.mule.runtime.api.config.Feature feature)
Feature and will be available for verifying if
it is enabled/disabled, activated/deactivated through Togglz.feature - the Feature to be added.public static MuleTogglzManagedArtifactFeatures getTogglzManagedArtifactFeatures(String artifactId, Map<org.mule.runtime.api.config.Feature,Boolean> features)
artifactId - the artifact id that will be associated to the status.features - a map indicating what features are enabled/disabled for an artifactId.FeatureState for each feature.public static void setFeatureState(org.togglz.core.repository.FeatureState featureState)
FeatureState corresponding to a FeaturefeatureState - the FeatureStatepublic static void withFeatureUser(org.togglz.core.user.FeatureUser featureUser,
Runnable runnable)
FeatureUser. Every operation involved regarding a
Feature take into account the user.featureUser - the FeatureUser to be bound to the context.runnable - the Runnable to be executed.public static <T> T withFeatureUser(org.togglz.core.user.FeatureUser featureUser,
Callable<T> callable)
Runnable within the context of a FeatureUser. Every operation involved regarding a
Feature will take into account this user.public static org.togglz.core.Feature getFeature(String featureName)
Feature by name.featureName - the feature nameFeature corresponding to that name.public static org.togglz.core.repository.FeatureState getFeatureState(org.togglz.core.Feature feature)
public static <T extends org.mule.runtime.api.profiling.ProfilingEventContext> String getFullyQualifiedProfilingEventTypeFeatureIdentifier(org.mule.runtime.api.profiling.type.ProfilingEventType<T> profilingEventType, String prefix)
T - the class of ProfilingEventTypeprofilingEventType - the ProfilingEventType.prefix - the consumer namepublic static <T extends org.mule.runtime.api.profiling.ProfilingEventContext> String getFullyQualifiedProfilingEventTypeIdentifier(org.mule.runtime.api.profiling.type.ProfilingEventType<T> profilingEventType)
T - the ProfilingEventContext associated to the profilingEventType.profilingEventType - the ProfilingEventTypeCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.