// ********************************************************************** // // Copyright (c) 2003 - 2004 // ZeroC, Inc. // North Palm Beach, FL, USA // // All Rights Reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ********************************************************************** class ObjectFactory extends Ice.LocalObjectImpl implements Ice.ObjectFactory { public Ice.Object create(String type) { if(type.equals("::Printer")) { return new PrinterI(); } if(type.equals("::DerivedPrinter")) { return new DerivedPrinterI(); } assert(false); return null; } public void destroy() { // Nothing to do } }