Methods Summary |
---|
private com.sun.xml.ws.policy.PolicyMap | getNewPolicyMap(com.sun.xml.ws.policy.PolicyMapMutator externalMutators)Iterates all the registered PolicyBuilders and lets them populate
their changes into PolicyMap. Registers mutators from collection given as a parameter
with the newly created map.
final HashSet<PolicyMapMutator> mutators = new HashSet<PolicyMapMutator>();
final PolicyMapExtender myExtender = PolicyMapExtender.createPolicyMapExtender();
mutators.add(myExtender);
if (null != externalMutators) {
mutators.addAll(Arrays.asList(externalMutators));
}
final PolicyMap policyMap = PolicyMap.createPolicyMap(mutators);
for(BuilderHandler builder : policyBuilders){
builder.populate(myExtender);
}
return policyMap;
|
com.sun.xml.ws.policy.PolicyMap | getPolicyMap(com.sun.xml.ws.policy.PolicyMapMutator externalMutators)Iterates all the registered PolicyBuilders and lets them populate
their changes into PolicyMap. Registers mutators given as a parameter
with the newly created map.
return getNewPolicyMap(externalMutators);
|
void | registerHandler(BuilderHandler builder)Registers another builder, which has to be notified after a new
PolicyMap is created in order to populate it's changes.
if (null != builder) {
policyBuilders.add(builder);
}
|
void | unregisterAll()
this.policyBuilders = null;
|