KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > cglib > transform > impl > PersistenceCapableImpl


1
2 package net.sf.cglib.transform.impl;
3
4 /**
5  *
6  * @author baliuka
7  */

8 public class PersistenceCapableImpl implements PersistenceCapable {
9     
10     Object JavaDoc persistenceManager;
11     Object JavaDoc pc;//transformed class instance
12

13     /** Creates a new instance of PersistenceCapableImpl,
14      transformed class uses this constructor */

15     
16     public PersistenceCapableImpl(Object JavaDoc _this) {
17         this.pc = _this;
18         
19     }
20     
21    public void setPersistenceManager( Object JavaDoc manager){
22         
23       persistenceManager = manager;
24       System.out.println("setPersistenceManager:" + manager);
25     }
26     
27    public Object JavaDoc getPersistenceManager(){
28      return persistenceManager;
29    }
30     
31 }
32
Popular Tags