com.arjuna.ats.arjuna.gandiva.inventory
Class Inventory

java.lang.Object
  extended bycom.arjuna.ats.arjuna.gandiva.inventory.Inventory

public class Inventory
extends java.lang.Object

Inventory implementations are accessed via instances of this class.

Since:
JTS 1.0.
Version:
$Id: Inventory.java 2342 2006-03-30 13:06:17Z $
Author:
Mark Little (mark@arjuna.com)

Constructor Summary
Inventory(InventoryImple imple)
          Create a new instance using the specified implementation.
 
Method Summary
 void addToList(InventoryElement creator)
           
 Inventory castup(ClassName theType)
           
 ClassName className()
           
 java.lang.Object createClassName(ClassName typeName, ClassName paramClassName)
          Create a new implementation of the specified type, and pass its constructor the ClassName parameter.
 java.lang.Object createClassNameResources(ClassName typeName, ClassName paramClassName, java.lang.Object[] paramResources)
          Create a new implementation of the specified type, and pass its constructor the ClassName and array of Objects as the parameter.
 java.lang.Object createObjectName(ClassName typeName, ObjectName paramObjectName)
          Create a new implementation of the specified type, and pass its constructor the ObjectName parameter.
 java.lang.Object createObjectNameResources(ClassName typeName, ObjectName paramObjectName, java.lang.Object[] paramResources)
          Create a new implementation of the specified type, and pass its constructor the ObjectName and array of Objects as the parameter.
 java.lang.Object createResources(ClassName typeName, java.lang.Object[] paramResources)
          Create a new implementation of the specified type, and pass its constructor the array of Objects as the parameter.
 java.lang.Object createVoid(ClassName typeName)
          Create a new implementation of the specified type using a default constructor.
 ClassName impleClassName()
           
static Inventory inventory()
          Return the current Inventory interface.
static ClassName name()
           
 void printList(java.io.PrintStream toUse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Inventory

public Inventory(InventoryImple imple)
Create a new instance using the specified implementation. Users should not use this to create an Inventory, but should use the inventory() method.

Method Detail

inventory

public static Inventory inventory()
Return the current Inventory interface.


createVoid

public java.lang.Object createVoid(ClassName typeName)
Create a new implementation of the specified type using a default constructor.


createClassName

public java.lang.Object createClassName(ClassName typeName,
                                        ClassName paramClassName)
Create a new implementation of the specified type, and pass its constructor the ClassName parameter.


createObjectName

public java.lang.Object createObjectName(ClassName typeName,
                                         ObjectName paramObjectName)
Create a new implementation of the specified type, and pass its constructor the ObjectName parameter.


createResources

public java.lang.Object createResources(ClassName typeName,
                                        java.lang.Object[] paramResources)
Create a new implementation of the specified type, and pass its constructor the array of Objects as the parameter.


createClassNameResources

public java.lang.Object createClassNameResources(ClassName typeName,
                                                 ClassName paramClassName,
                                                 java.lang.Object[] paramResources)
Create a new implementation of the specified type, and pass its constructor the ClassName and array of Objects as the parameter.


createObjectNameResources

public java.lang.Object createObjectNameResources(ClassName typeName,
                                                  ObjectName paramObjectName,
                                                  java.lang.Object[] paramResources)
Create a new implementation of the specified type, and pass its constructor the ObjectName and array of Objects as the parameter.


addToList

public void addToList(InventoryElement creator)

printList

public void printList(java.io.PrintStream toUse)

name

public static ClassName name()

className

public ClassName className()

impleClassName

public ClassName impleClassName()

castup

public Inventory castup(ClassName theType)