public interface ServiceDomain
| Modifier and Type | Method and Description |
|---|---|
ServiceDomain |
addEventObserver(EventObserver observer,
Class<? extends EventObject> eventType)
Add an EventObserver for the specified event type.
|
void |
destroy()
Cleans up all resources associated with a ServiceDomain instance including
the transformer/validator/service registry and exchange bus.
|
EventPublisher |
getEventPublisher()
Returns the EventPublisher for this domain, which can be used to notify
event observers of activity.
|
QName |
getName()
Name of the ServiceDomain.
|
Map<String,Object> |
getProperties()
Shared properties/POJOs for this service domain.
|
Object |
getProperty(String name)
Returns the value of the specified domain property.
|
ServiceReference |
getServiceReference(QName serviceName)
Fetches a registered service reference for the specified name.
|
List<Service> |
getServices()
Return the list of services.
|
List<Service> |
getServices(QName serviceName)
Get the list of services for the specified service name.
|
ServiceSecurity |
getServiceSecurity(String name)
Gets a ServiceSecurity by name.
|
TransformerRegistry |
getTransformerRegistry()
Returns a reference to the transformer registry for this domain.
|
ValidatorRegistry |
getValidatorRegistry()
Returns a reference to the validator registry for this domain.
|
void |
init()
Initialize the service domain.
|
Service |
registerService(QName serviceName,
ServiceInterface contract,
ExchangeHandler handler)
Register a service with the domain.
|
Service |
registerService(QName serviceName,
ServiceInterface contract,
ExchangeHandler handler,
ServiceMetadata metadata)
Register a service with the domain.
|
ServiceReference |
registerServiceReference(QName serviceName,
ServiceInterface metadata)
Register a service reference with the domain.
|
ServiceReference |
registerServiceReference(QName serviceName,
ServiceInterface contract,
ExchangeHandler handler)
Register a service reference with the domain.
|
ServiceReference |
registerServiceReference(QName serviceName,
ServiceInterface contract,
ExchangeHandler handler,
ServiceMetadata metadata)
Register a service reference with the domain.
|
ServiceDomain |
setProperty(String name,
Object value)
Sets the specified property on this domain.
|
void init()
QName getName()
Service registerService(QName serviceName, ServiceInterface contract, ExchangeHandler handler)
serviceName - the name of the servicehandler - the handler to use to process exchanges directed at this
servicecontract - service interface detailsService registerService(QName serviceName, ServiceInterface contract, ExchangeHandler handler, ServiceMetadata metadata)
serviceName - the name of the servicehandler - the handler to use to process exchanges directed at this
servicecontract - service interface detailsmetadata - runtime metadata associated with the serviceServiceReference registerServiceReference(QName serviceName, ServiceInterface metadata)
serviceName - the name of the referencemetadata - service consumer contractServiceReference registerServiceReference(QName serviceName, ServiceInterface contract, ExchangeHandler handler)
serviceName - the name of the referencecontract - service consumer contracthandler - the handler to use to process replies from the serviceServiceReference registerServiceReference(QName serviceName, ServiceInterface contract, ExchangeHandler handler, ServiceMetadata metadata)
serviceName - the name of the referencecontract - service consumer contracthandler - the handler to use to process replies from the servicemetadata - runtime metadata associated with the serviceServiceReference getServiceReference(QName serviceName)
serviceName - name of the service referenceList<Service> getServices(QName serviceName)
serviceName - service nameTransformerRegistry getTransformerRegistry()
ValidatorRegistry getValidatorRegistry()
ServiceDomain addEventObserver(EventObserver observer, Class<? extends EventObject> eventType)
observer - the event observer to addeventType - the event type to receive notifications onEventPublisher getEventPublisher()
ServiceSecurity getServiceSecurity(String name)
name - the nameServiceDomain setProperty(String name, Object value)
name - property namevalue - property valueObject getProperty(String name)
name - property nameMap<String,Object> getProperties()
void destroy()
Copyright © 2013-2014 JBoss by Red Hat. All Rights Reserved.