Diff of /incubator/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/jsp/AbstractConverter.java
Parent Directory
| Revision Log
| Patch
--- incubator/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/jsp/AbstractConverter.java 2006/02/04 21:44:01 374935
+++ incubator/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/jsp/AbstractConverter.java 2006/02/04 21:47:46 374936
@@ -1,23 +1,25 @@
+package org.apache.myfaces.tobago.example.demo.jsp;
+
/*
* Copyright 2002-2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*/
+
/*
* Created on: 02.09.2002, 23:33:19
* $Id: AbstractConverter.java,v 1.1.1.1 2004/04/15 18:41:00 idus Exp $
*/
-package org.apache.myfaces.tobago.example.demo.jsp;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -31,22 +33,30 @@ import org.apache.oro.text.regex.Perl5Ma
public abstract class AbstractConverter implements Converter {
- private static final Log log = LogFactory.getLog(AbstractConverter.class);
+ private static final Log LOG = LogFactory.getLog(AbstractConverter.class);
private Pattern pattern;
- protected Perl5Matcher matcher = new Perl5Matcher();
- protected Perl5Compiler compiler = new Perl5Compiler();
- protected Perl5Util util = new Perl5Util();
+ private Perl5Matcher matcher = new Perl5Matcher();
+ private Perl5Compiler compiler = new Perl5Compiler();
+ private Perl5Util util = new Perl5Util();
public abstract Pattern initPattern() throws MalformedPatternException;
+ public Perl5Compiler getCompiler() {
+ return compiler;
+ }
+
+ public Perl5Util getUtil() {
+ return util;
+ }
+
public Pattern getPattern() {
if (pattern == null) {
try {
pattern = initPattern();
} catch (MalformedPatternException e) {
- log.error("", e);
+ LOG.error("", e);
}
}
return pattern;