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

Type Parameters:
T - The endpoint implementation class type.

public interface Configurator<T>

This interface encapsulates the logic to reconfigure an endpoint instance.

Author:
Fabian Ritzmann

Method Summary
 void init(ManagedEndpoint<T> endpoint, com.sun.xml.ws.api.config.management.policy.ManagedServiceAssertion assertion, ConfigReader<T> reader, ConfigSaver<T> saver)
          Initializes the endpoint.
 void recreate(NamedParameters parameters)
          Reconfigures an endpoint instance.
 void start()
          Starts any concurrent tasks required by the implementation.
 void stop()
          Starts any concurrent tasks required by the implementation.
 

Method Detail

init

void init(ManagedEndpoint<T> endpoint,
          com.sun.xml.ws.api.config.management.policy.ManagedServiceAssertion assertion,
          ConfigReader<T> reader,
          ConfigSaver<T> saver)
          throws WebServiceException
Initializes the endpoint.

Parameters:
endpoint - The managed endpoint instance. Must not be null.
assertion - This assertion contains the policy that configured the managed endpoint. May be null.
reader - A ConfigReader instance. Must not be null.
saver - A ConfigSaver instance. Must not be null.
Throws:
WebServiceException - If the initialization failed.

start

void start()
           throws WebServiceException
Starts any concurrent tasks required by the implementation.

Throws:
WebServiceException - If the start failed.

stop

void stop()
          throws WebServiceException
Starts any concurrent tasks required by the implementation.

Throws:
WebServiceException - If stopping failed.

recreate

void recreate(NamedParameters parameters)
              throws WebServiceException
Reconfigures an endpoint instance.

Parameters:
parameters - The reconfiguration data.
Throws:
WebServiceException - If the reconfiguration failed.


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