1
2
3
4
5
6
7
8
9 package org.sourceforge.vlibrary.user.forms;
10
11 import org.apache.struts.action.ActionForm;
12 import org.sourceforge.vlibrary.user.logic.LibraryManager;
13
14 import org.apache.log4j.Logger;
15
16
17
18
19 public abstract class LibraryForm extends ActionForm {
20
21
22 protected static LibraryManager libraryManager;
23
24
25 protected Logger logger = Logger.getLogger(getClassName());
26
27
28 public LibraryForm() {
29 }
30
31 public void setLibraryManager( LibraryManager LibraryManager ) {
32 this.libraryManager = LibraryManager;
33
34 if (logger.isDebugEnabled()) {
35 logger.debug( "Initializing LibraryManager in Form with:" + libraryManager);
36 }
37 }
38
39 public abstract String getClassName();
40 }