public final class PolicyMerger
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static PolicyMerger |
merger |
| Modifier | Constructor and Description |
|---|---|
private |
PolicyMerger()
This private constructor is to avoid direct class instantiation from outsied of the package
|
| Modifier and Type | Method and Description |
|---|---|
static PolicyMerger |
getMerger()
Factory method for obtaining thread-safe policy merger instance.
|
Policy |
merge(java.util.Collection<Policy> policies)
Takes collection of policies and merges them into a single policy using algorithm described in
WS-PolicyAttachment specification.
|
private static final PolicyMerger merger
private PolicyMerger()
public static PolicyMerger getMerger()
public Policy merge(java.util.Collection<Policy> policies)
policies - collection of policies to be merged. The collection must not contain 'null' elements!null or empty, returns null. If provided
collection of policies contains only single policy, the policy is returned.