org.globus.ogsa
Interface FactoryCallback

All Known Implementing Classes:
DynamicFactoryCallbackImpl, EJBFactoryCallback, EJBHomeFactoryProvider, MasterCounterFactory, NotificationSubscriptionFactoryCallbackImpl

public interface FactoryCallback

A FactoryCallback is used to provide custom implementations of the creation of Grid service instances. The callback object is associated with a GridServiceBase service, which represents the base factory service. The base service can for example be used the get configuration settings for this factory.

See Also:
GridServiceBase

Method Summary
 GridServiceBase createServiceObject(ExtensibilityType creationParameters, ExtensibilityTypeHolder extensibilityOutput)
          creates a new Grid service instance that implements the GridServiceBase interface
 void initialize(GridServiceBase base)
          associates this object with its GridServiceBase service.
 

Method Detail

initialize

public void initialize(GridServiceBase base)
                throws GridServiceException
associates this object with its GridServiceBase service. This method is called when the first instance creation is requested.

Parameters:
base - factory service that this factory callback should create services for
Throws:
GridServiceException - if the callback object could not be initialized

createServiceObject

public GridServiceBase createServiceObject(ExtensibilityType creationParameters,
                                           ExtensibilityTypeHolder extensibilityOutput)
                                    throws GridServiceException
creates a new Grid service instance that implements the GridServiceBase interface

Parameters:
creationParameters - parameters the client may pass to the factory at creation time
Throws:
GridServiceException - if the service instance could not be created


Copyright ? 1999 University of Chicago and The University of Southern California. All Rights Reserved.