uk.org.ogsadai.sessions
Interface SessionComponentFactory

All Known Implementing Classes:
SessionConfigurationLoader

public interface SessionComponentFactory

Inferface used to create session components for data service resources.

Author:
OGSA-DAI team

Method Summary
 SessionCoordinator getSessionCoordinator()
          Gets the session coordinator for the data service resource.
 void setDataResourceAccessor(DataResourceAccessor dataResourceAccessor)
          Specifies the data resource accessor associated with the data service resource.
 void setResourceProperties(Properties resourceProperties)
          Specifies the data resource properties associated with the data resource.
 

Method Detail

setDataResourceAccessor

public void setDataResourceAccessor(DataResourceAccessor dataResourceAccessor)
Specifies the data resource accessor associated with the data service resource.

Parameters:
dataResourceAccessor - The data resource accessor.
Throws:
java.lang.IllegalArgumentException - If the argument is null.

setResourceProperties

public void setResourceProperties(Properties resourceProperties)
Specifies the data resource properties associated with the data resource. Session components may add, delete or alter the set of data resource properties.

Parameters:
resourceProperties -
Throws:
java.lang.IllegalArgumentException - If the argument is null.

getSessionCoordinator

public SessionCoordinator getSessionCoordinator()
                                         throws DAIException
Gets the session coordinator for the data service resource. This method must only be called after the setDataResourceAccessor and setResourceProperties methods have both been called.

Returns:
The session coordinator for the data service resource.
Throws:
java.lang.IllegalStateException - If this method is called before the setDataResourceAccessor and setResourceProperties methods have been called.
DAIException - If an error occurs constructing the serssion coordinator.