planet.commonapi.factory
Interface EndPointFactory

All Known Implementing Classes:
EndPointFactoryImpl

public interface EndPointFactory

This interface attempts to abstract building EndPoints, using the pattern design Factory Method. For this, requires an instance of Application and other one of Node.

Any future implementation must contain the no argument constructor.

Author:
Jordi Pujol 07-jul-2005

Method Summary
 EndPoint buildEndPoint(Application app, Node node)
          Builds a new EndPoint that relates the Application app with the underlying Node node.
 EndPointFactory setValues(java.lang.Class endPoint)
          Sets initial values for this EndPointFactory.
 

Method Detail

setValues

public EndPointFactory setValues(java.lang.Class endPoint)
                          throws InitializationException
Sets initial values for this EndPointFactory.

Parameters:
endPoint - Class reference to build new EndPoint instances.
Returns:
The same instance once it has been updated.
Throws:
InitializationException - if some error occurs during the initialization process.

buildEndPoint

public EndPoint buildEndPoint(Application app,
                              Node node)
                       throws InitializationException
Builds a new EndPoint that relates the Application app with the underlying Node node.

Parameters:
app - Application to install at this node.
node - Node where will be installed the Application.
Returns:
A new instance of EndPoint that relates the Application and the Node.
Throws:
InitializationException