|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cxf.endpoint.ServiceContractResolverRegistryImpl
public class ServiceContractResolverRegistryImpl
A simple contract resolver registry. It maintains a list of contract resolvers in an
ArrayList
.
Constructor Summary | |
---|---|
ServiceContractResolverRegistryImpl()
|
Method Summary | |
---|---|
java.net.URI |
getContractLocation(javax.xml.namespace.QName qname)
Calls each of the registered ServiceContractResolver instances
to resolve the location of the service's contract. |
protected java.util.List<ServiceContractResolver> |
getResolvers()
|
void |
init()
Initialize registry, and register itself on Bus as an extension. |
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 bus)
Sets the bus with which the registry is associated. |
void |
unregister(ServiceContractResolver resolver)
Removes a contract resolver from this registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceContractResolverRegistryImpl()
Method Detail |
---|
@PostConstruct public void init()
public java.net.URI getContractLocation(javax.xml.namespace.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 location
public boolean isRegistered(ServiceContractResolver resolver)
isRegistered
in interface ServiceContractResolverRegistry
resolver
- the contract resolver for which to searche
true
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 removepublic void setBus(Bus bus)
bus
- protected java.util.List<ServiceContractResolver> getResolvers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |