a little bit documentation
[cdmlib.git] / cdmlib-remote / src / main / java / eu / etaxonomy / cdm / remote / controller / AbstractController.java
1 // $Id$
2 /**
3 * Copyright (C) 2009 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10 package eu.etaxonomy.cdm.remote.controller;
11
12 import java.util.Arrays;
13 import java.util.List;
14
15 import org.apache.log4j.Logger;
16
17 /**
18 * @author a.kohlbecker
19 * @date 23.06.2009
20 *
21 */
22 public abstract class AbstractController {
23
24 protected static final List<String> DEFAULT_INIT_STRATEGY = Arrays.asList(new String []{
25 "$"
26 });
27
28 public static final Logger logger = Logger.getLogger(BaseController.class);
29
30 protected static final Integer DEFAULT_PAGE_SIZE = 30;
31
32 protected List<String> initializationStrategy = DEFAULT_INIT_STRATEGY;
33
34 /**
35 * Set the default initialization strategy for this controller.
36 *
37 * @param initializationStrategy
38 */
39 public void setInitializationStrategy(List<String> initializationStrategy) {
40 this.initializationStrategy = initializationStrategy;
41 }
42
43 }