public class FeaturePolicyEnforcer extends Object
| Constructor and Description |
|---|
FeaturePolicyEnforcer()
Initializes a policy enforcer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyPolicy(Feature app)
Applies a policy to the given feature.
|
void |
applyThreadPriority(Feature app)
Sets priority to the threads owned by the given feature.
|
public FeaturePolicyEnforcer()
public void applyPolicy(Feature app) throws JSONException, IOException
app - the feature to which the policy will be applied.JSONException - if file parsing fails.IOException - if I/O errors occur.public void applyThreadPriority(Feature app)
app - the feature to which the priority will be applied.