View Javadoc

1   /*
2    * Copyright (c) 2007 Creative Sphere Limited.
3    * All rights reserved. This program and the accompanying materials
4    * are made available under the terms of the Eclipse Public License v1.0
5    * which accompanies this distribution, and is available at
6    * http://www.eclipse.org/legal/epl-v10.html
7    *
8    * Contributors:
9    *
10   *   Creative Sphere - initial API and implementation
11   *
12   */
13  package org.abstracthorizon.danube.support.logging;
14  
15  import org.abstracthorizon.pasulj.PasuljInfo;
16  
17  
18  /**
19   * Bean info for {@link LoggingConnectionHandler} class
20   *
21   * @author Daniel Sendula
22   */
23  public class LoggingConnectionHandlerBeanInfo extends PasuljInfo {
24  
25      /**
26       * Constructor
27       */
28      public LoggingConnectionHandlerBeanInfo() {
29          this(LoggingConnectionHandler.class);
30      }
31  
32      /**
33       * Constructor
34       * @param cls class
35       */
36      protected LoggingConnectionHandlerBeanInfo(Class<?> cls) {
37          super(cls);
38      }
39  
40      /**
41       * Init method
42       */
43      public void init() {
44  
45          addProperty("logging", "Is logging switched on or off");
46          addProperty("directional", "Is it direction/readable text logging or not");
47          addProperty("tempLogging", "Should all input be logged on the temporary basis");
48          addProperty("addressPatternString", "Client socket address pattern string");
49          addProperty("logsPath", "Path of log files");
50          addProperty("logFileNamePattern", "Log file name pattern string: %c-time millis, %D-date, %T-time, %A-local addr, %P-local port, %a-remote addr, %p-remote port ");
51  
52          addProperty("connectionHandler", "Connection handler", true, false);
53      }
54  
55  }