com.ail.core.factory
Interface Factory

All Known Implementing Classes:
Core

public interface Factory

This interface describes the contract between the Core class and the Factory sub-system. It defines the methods that Core is expected to expose on behalf of the Factory, and for which the Factory provides Entry Points based implementations.

Version:
$Revision: 1.2 $

Method Summary
 AbstractCommand newCommand(java.lang.String commandName)
          Create a new instance of the named command.
 java.lang.Object newObject(java.lang.String objectName)
          Create an instance of the specific object.
 Type newType(java.lang.String typeName)
          Create a new instance of the named type.
 

Method Detail

newCommand

AbstractCommand newCommand(java.lang.String commandName)
Create a new instance of the named command. The details of the type to be created are loaded from the callers configuration.

Parameters:
version - The version of the command to create.
commandName - The name to be used to locate the commands details.
Returns:
An instance of the command.

newType

Type newType(java.lang.String typeName)
Create a new instance of the named type. The typeName argument relates to a type in the callers configuration which defines the specifics of the type to be created.

Parameters:
version - The version of the type to create
typeName - The name use to loafe the type's details.
Returns:
An instance of a type.

newObject

java.lang.Object newObject(java.lang.String objectName)
Create an instance of the specific object. The objectName argument relates to an object described in the callers configuration. This in turn defines the specifics of the object to be created.

Parameters:
version - The version of the object to create.
objectName - The name of the object in the callers configuration.
Returns:
The instantiated object.