KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > speedo > pm > api > ProxyManagerFactory


1 /**
2  * Copyright (C) 2001-2004 France Telecom R&D
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18 package org.objectweb.speedo.pm.api;
19
20 import javax.jdo.datastore.DataStoreCache;
21 import javax.jdo.PersistenceManagerFactory;
22
23 import org.objectweb.speedo.sequence.api.SequenceManager;
24
25 /**
26  * It manages proxy manager instances.
27  *
28  * @author S.Chassande-Barrioz
29  */

30 public interface ProxyManagerFactory
31         extends PersistenceManagerFactory, DataStoreCache {
32
33     /**
34      * Finds in the associated ProxyManagerSwitch a ProxyManager managed by the
35      * ProxyManagerFactory.
36      * @return a ProxyManager instance or a null value.
37      */

38     ProxyManager lookup();
39
40     /**
41      * It call pms.unbind(this) in order to unbind a ProxyManager managed by
42      * this ProxyManagerFactory, from the thread.
43      */

44     void unbindPM();
45
46     /**
47      * Ask to the PMS to bind a particular PM to the Thread.
48      * @param pm
49      */

50     void bindPM2Thread(ProxyManager pm);
51
52     /**
53      * Indicates when a PM has been closed.
54      * @param pr the closed PM.
55      */

56     void proxyManagerClosed(ProxyManager pr);
57     
58     /**
59      * Get the sequence manager associated to the pmf.
60      */

61     SequenceManager getSequenceManager();
62     
63     /**
64      * Set the sequence manager.
65      */

66     void setSequenceManager( SequenceManager sequenceManager);
67 }
68
Popular Tags