ICE 3.4.2
[php5-ice-freebsdport.git] / java / demo / Freeze / phonebook / ContactFactory.java
blobed0c06b03ce617c357514db7b9a8ce0e92d1c14d
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
4 //
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
7 //
8 // **********************************************************************
10 class ContactFactory implements Ice.ObjectFactory
12 public Ice.Object
13 create(String type)
15 assert(type.equals("::Demo::Contact"));
16 return new ContactI(this);
19 public void
20 destroy()
24 ContactFactory()
28 void
29 setEvictor(Freeze.Evictor evictor)
31 _evictor = evictor;
34 Freeze.Evictor
35 getEvictor()
37 return _evictor;
40 private Freeze.Evictor _evictor;