biz.hammurapi.registry
Interface FactoryConfigurator<T>


public interface FactoryConfigurator<T>

Implementations of this interface are used to configure and instantiate component factories.

Author:
Pavel

Method Summary
 java.util.List<java.awt.Component> configure(java.util.Map<?,?> context)
          Configures factory.
 T createFactory()
          Instantiates factory for component/service.
 

Method Detail

configure

java.util.List<java.awt.Component> configure(java.util.Map<?,?> context)
Configures factory.

Parameters:
context - Configuration context. Some configuration parameters can be taken from the context to pre-populate or hide property pages if information is already available.
Returns:
If conifguration requires user interaction then a list of property pages is returned. These pages are then present to the user in a wizard.

createFactory

T createFactory()
Instantiates factory for component/service. Factories aren't supposed to implement any particular interface. E.g. CodeSnippet 'factory' creates a fragment of code for component instantiation/configuration.

Returns:
Configured component factory.


Copyright © 2006 Hammurapi Group. All Rights Reserved.