com.sun.xml.ws.metro.api.config.management
Interface ConfigReader<T>

Type Parameters:
T - The endpoint implementation class type.

public interface ConfigReader<T>

Establish if the configuration data has changed and reconfigure the endpoint with the new configuration data.

Author:
Fabian Ritzmann

Method Summary
 void init(ManagedEndpoint<T> endpoint, com.sun.xml.ws.api.config.management.policy.ManagedServiceAssertion assertion, com.sun.xml.ws.api.config.management.EndpointCreationAttributes attributes, java.lang.ClassLoader classLoader, EndpointStarter starter)
          Initialize the reader.
 void start(NamedParameters parameters)
          Start this reader.
 void stop()
          Stop this reader.
 

Method Detail

init

void init(ManagedEndpoint<T> endpoint,
          com.sun.xml.ws.api.config.management.policy.ManagedServiceAssertion assertion,
          com.sun.xml.ws.api.config.management.EndpointCreationAttributes attributes,
          java.lang.ClassLoader classLoader,
          EndpointStarter starter)
          throws WebServiceException
Initialize the reader.

Parameters:
endpoint - A ManagedEndpoint instance. Must not be null.
assertion - This assertion contains the policy that configured the managed endpoint. May be null.
attributes - The attributes with which the original WSEndpoint instance was created.
classLoader - The class loader that is associated with the original WSEndpoint instance.
starter - An EndpointStarter instance. Must not be null.
Throws:
WebServiceException - If the initialization failed.

start

void start(NamedParameters parameters)
           throws WebServiceException
Start this reader. It is assumed that the reader will concurrently poll or wait for a configuration change event.

Parameters:
parameters - Custom configurator implementations can use this to pass in their own parameters.
Throws:
WebServiceException - If the start failed.

stop

void stop()
          throws WebServiceException
Stop this reader.

Throws:
WebServiceException - If stopping failed.


Copyright © 2005-2013 Oracle Corporation. All Rights Reserved.