net.sourceforge.xwing
Interface SourceSinkFactory


public interface SourceSinkFactory

An interface for classes that create a SourceSink.

Version:
$Revision: 1.2 $
Author:
Scott Howlett

Method Summary
 SourceSink create(Object value)
          Create a SourceSink.
 Class getValueClass()
          What class will the created SourceSink understand as its value?
 

Method Detail

create

public SourceSink create(Object value)
                  throws Exception
Create a SourceSink. How the value parameter is used depends on the specific implementation of SourceSinkFactory.

Parameters:
value - A value that should be used in the creation of the SourceSink.
Returns:
The created SourceSink.
Throws:
Exception

getValueClass

public Class getValueClass()
What class will the created SourceSink understand as its value?

Returns:
A Class that wil be a base class for any values returned by the get() method of the created SourceSink. Any values stored by the created SourceSink's set() method must likewise be derived from this Class.


Copyright © 2003 The Xwing Project. All Rights Reserved.