public abstract class StringToInclusionPolicy<T extends InclusionPolicy> extends Object implements Function<String,T>
Function that converts String to InclusionPolicy.
Converts a fully qualified class name to an instance of the class, or a SPEL expression to InclusionPolicy.| Constructor and Description |
|---|
StringToInclusionPolicy() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
all() |
T |
apply(String s) |
protected abstract T |
compositePolicy(T policy)
Instantiate a composite policy from IncludeAllBusiness* policy and the given policy.
|
protected abstract T |
none() |
protected abstract T |
spelPolicy(String spel)
Instantiate a new SPEL-bases policy.
|
public T apply(String s)
apply in interface Function<String,T extends InclusionPolicy>protected abstract T compositePolicy(T policy)
policy - second policy in the composite.protected abstract T spelPolicy(String spel)
spel - expression.protected abstract T all()
protected abstract T none()
Copyright © 2013-2016–2018 Graph Aware Limited. All rights reserved.