public class ServiceContractResolverRegistryImpl extends Object implements ServiceContractResolverRegistry
ArrayList
.Constructor and Description |
---|
ServiceContractResolverRegistryImpl() |
ServiceContractResolverRegistryImpl(Bus b) |
Modifier and Type | Method and Description |
---|---|
URI |
getContractLocation(QName qname)
Calls each of the registered
ServiceContractResolver instances
to resolve the location of the service's contract. |
protected List<ServiceContractResolver> |
getResolvers() |
boolean |
isRegistered(ServiceContractResolver resolver)
Tests if a resolver is alreadey registered with this registry.
|
void |
register(ServiceContractResolver resolver)
Registers a contract resolver with this registry.
|
void |
setBus(Bus b)
Sets the bus with which the registry is associated.
|
void |
unregister(ServiceContractResolver resolver)
Removes a contract resolver from this registry.
|
public ServiceContractResolverRegistryImpl()
public ServiceContractResolverRegistryImpl(Bus b)
public final void setBus(Bus b)
b
- public URI getContractLocation(QName qname)
ServiceContractResolver
instances
to resolve the location of the service's contract. It returns the location
from the first resolver that matches the QName to a location.getContractLocation
in interface ServiceContractResolverRegistry
qname
- QName to be resolved into a contract locationpublic boolean isRegistered(ServiceContractResolver resolver)
isRegistered
in interface ServiceContractResolverRegistry
resolver
- the contract resolver for which to searchetrue
if the resolver is registeredpublic void register(ServiceContractResolver resolver)
register
in interface ServiceContractResolverRegistry
resolver
- the contract resolver to registerpublic void unregister(ServiceContractResolver resolver)
unregister
in interface ServiceContractResolverRegistry
resolver
- the contract resolver to removeprotected List<ServiceContractResolver> getResolvers()
Copyright © 2016 JBoss by Red Hat. All rights reserved.