de.unirostock.Prototype.example
Class ShipFactory

java.lang.Object
  extended by de.unirostock.Prototype.example.ShipFactory

public class ShipFactory
extends java.lang.Object


Method Summary
static ShipFactory getInstance()
           
 Ship getNewShipInstance(java.lang.String material, java.lang.String name)
           
 void setShipPrototype(Ship shipPrototype)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ShipFactory getInstance()

setShipPrototype

public void setShipPrototype(Ship shipPrototype)

getNewShipInstance

public Ship getNewShipInstance(java.lang.String material,
                               java.lang.String name)