View Javadoc

1   /*
2    * Copyright 2012 The Kuali Foundation
3    *
4    * Licensed under the the Educational Community License, Version 1.0
5    * (the "License"); you may not use this file except in compliance
6    * with the License.  You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl1.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.student.common.spring;
17  
18  import java.io.Serializable;
19  import java.util.LinkedList;
20  import java.util.List;
21  
22  import org.apache.commons.collections.CollectionUtils;
23  
24  /**
25   * @author Kuali Student Team
26   */
27  public abstract class AbstractFakeService implements Serializable {
28  	
29  		// this reference is here so that when we serialize this class the file size will be large
30  		// it will let us see the benefit of using the proxy
31  		protected LinkedList<String> bigData = new LinkedList<String>();
32  
33  		/**
34  		 * 
35  		 */
36          public AbstractFakeService() {
37  	        super();
38  	        
39  	        for (int i = 0; i < 236598; i++) {
40  	            bigData.add( String.valueOf(i));
41              }
42          }
43  
44  		
45  }