org.apache.tuscany.sca.binding.notification
Class NotificationBindingProviderFactory

java.lang.Object
  extended by org.apache.tuscany.sca.binding.notification.NotificationBindingProviderFactory
All Implemented Interfaces:
NotificationBrokerManager, BindingProviderFactory<NotificationBinding>, ProviderFactory<NotificationBinding>

public class NotificationBindingProviderFactory
extends java.lang.Object
implements BindingProviderFactory<NotificationBinding>, NotificationBrokerManager

The runtime representation of the notification reference binding


Constructor Summary
NotificationBindingProviderFactory(ServletHost servletHost, EncodingRegistry encodingRegistry)
           
 
Method Summary
 ReferenceBindingProvider createReferenceBindingProvider(RuntimeComponent component, RuntimeComponentReference reference, NotificationBinding binding)
          Creates a new reference binding provider for the given component and reference.
 ServiceBindingProvider createServiceBindingProvider(RuntimeComponent component, RuntimeComponentService service, NotificationBinding binding)
          Creates a new service binding provider for the given component and service.
 java.lang.Class<NotificationBinding> getModelType()
          The model type that this factory creates providers for.
 void init()
           
 void referenceProviderStarted(java.net.URI notificationType, NotificationReferenceBindingProvider referenceBindingProvider, java.net.URL remoteNtmUrl)
           
static void removeBroker(java.net.URI notificationType)
           
 void replaceConsumersBrokerConnection(java.net.URI notificationType, EndpointReference chosenBrokerProducerEpr)
           
 void serviceProviderStarted(java.net.URI notificationType, NotificationServiceBindingProvider serviceBindingProvider, java.net.URL remoteNtmUrl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationBindingProviderFactory

public NotificationBindingProviderFactory(ServletHost servletHost,
                                          EncodingRegistry encodingRegistry)
Method Detail

getModelType

public java.lang.Class<NotificationBinding> getModelType()
Description copied from interface: ProviderFactory
The model type that this factory creates providers for.

Specified by:
getModelType in interface ProviderFactory<NotificationBinding>
Returns:
the model type

createReferenceBindingProvider

public ReferenceBindingProvider createReferenceBindingProvider(RuntimeComponent component,
                                                               RuntimeComponentReference reference,
                                                               NotificationBinding binding)
Description copied from interface: BindingProviderFactory
Creates a new reference binding provider for the given component and reference.

Specified by:
createReferenceBindingProvider in interface BindingProviderFactory<NotificationBinding>
Parameters:
component - The runtime component
reference - The reference on the runtime component
binding - The binding assembly model object
Returns:
The binding provider

createServiceBindingProvider

public ServiceBindingProvider createServiceBindingProvider(RuntimeComponent component,
                                                           RuntimeComponentService service,
                                                           NotificationBinding binding)
Description copied from interface: BindingProviderFactory
Creates a new service binding provider for the given component and service.

Specified by:
createServiceBindingProvider in interface BindingProviderFactory<NotificationBinding>
Parameters:
component - The runtime component
service - The service on the runtime component
binding - The binding assembly model object
Returns:
The binding provider

serviceProviderStarted

public void serviceProviderStarted(java.net.URI notificationType,
                                   NotificationServiceBindingProvider serviceBindingProvider,
                                   java.net.URL remoteNtmUrl)
Specified by:
serviceProviderStarted in interface NotificationBrokerManager

referenceProviderStarted

public void referenceProviderStarted(java.net.URI notificationType,
                                     NotificationReferenceBindingProvider referenceBindingProvider,
                                     java.net.URL remoteNtmUrl)
Specified by:
referenceProviderStarted in interface NotificationBrokerManager

replaceConsumersBrokerConnection

public void replaceConsumersBrokerConnection(java.net.URI notificationType,
                                             EndpointReference chosenBrokerProducerEpr)
Specified by:
replaceConsumersBrokerConnection in interface NotificationBrokerManager

removeBroker

public static void removeBroker(java.net.URI notificationType)

init

public void init()