Skip to content

Commit

Permalink
Adding correct licence headers, code formatting, code cleanup
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/cocoon/trunk@25668 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
cziegeler committed Sep 5, 2003
1 parent f2eec47 commit 71f1612
Show file tree
Hide file tree
Showing 9 changed files with 220 additions and 226 deletions.
28 changes: 5 additions & 23 deletions src/blocks/swf/java/org/apache/cocoon/generation/SWFGenerator.java
Expand Up @@ -55,9 +55,6 @@ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
import de.tivano.flash.swf.parser.SWFVerboseDefineFont2Reader;
import de.tivano.flash.swf.parser.SWFVerboseDefineFontReader;

import org.apache.avalon.framework.configuration.Configurable;
import org.apache.avalon.framework.configuration.Configuration;
import org.apache.avalon.framework.configuration.ConfigurationException;
import org.apache.avalon.framework.parameters.Parameters;
import org.apache.cocoon.ProcessingException;
import org.apache.cocoon.environment.SourceResolver;
Expand All @@ -72,21 +69,15 @@ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
* uses the project http://developer.berlios.de/projects/spark-xml/
*
* @author <a href="mailto:tcurdt@apache.org">Torsten Curdt</a>
* @version CVS $Id: SWFGenerator.java,v 1.2 2003/03/16 17:49:07 vgritsenko Exp $
* @version CVS $Id: SWFGenerator.java,v 1.3 2003/09/05 07:40:20 cziegeler Exp $
*/
public class SWFGenerator extends FileGenerator implements Configurable {
public class SWFGenerator extends FileGenerator {

private boolean pVerbose = false;
private SWFReader parser;

public void configure(Configuration configuration) throws ConfigurationException {
pVerbose = false;
}



public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par)
throws ProcessingException, SAXException, IOException
{
throws ProcessingException, SAXException, IOException {
super.setup(resolver, objectModel, src, par);
parser = new SWFReader();
if (pVerbose) {
Expand All @@ -96,8 +87,7 @@ public void setup(SourceResolver resolver, Map objectModel, String src, Paramete
}

public void generate()
throws IOException, SAXException, ProcessingException
{
throws IOException, SAXException, ProcessingException {

try {
if (this.getLogger().isDebugEnabled()) {
Expand Down Expand Up @@ -128,12 +118,4 @@ public void generate()
}
}

public void recycle() {
super.recycle();
}

public void dispose() {
super.dispose();
}

}
Expand Up @@ -53,10 +53,6 @@ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-

import java.io.OutputStream;

import org.apache.avalon.framework.configuration.Configurable;
import org.apache.avalon.framework.configuration.Configuration;
import org.apache.avalon.framework.configuration.ConfigurationException;

import org.xml.sax.Attributes;
import org.xml.sax.SAXException;

Expand All @@ -66,17 +62,14 @@ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
* uses the project http://developer.berlios.de/projects/spark-xml/
*
* @author <a href="mailto:tcurdt@apache.org">Torsten Curdt</a>
* @version CVS $Id: SWFSerializer.java,v 1.2 2003/03/16 17:49:08 vgritsenko Exp $
* @version CVS $Id: SWFSerializer.java,v 1.3 2003/09/05 07:40:20 cziegeler Exp $
*/
public class SWFSerializer extends AbstractSerializer implements Configurable {
public class SWFSerializer extends AbstractSerializer {

private final static String mimeType = "application/x-shockwave-flash";

private SWFWriter handler;

public void configure(Configuration configuration) throws ConfigurationException {
getLogger().debug("configured the SWF serializer");
}

public String getMimeType() {
return(mimeType);
}
Expand Down
@@ -1,4 +1,4 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
/*
============================================================================
The Apache Software License, Version 1.1
Expand Down Expand Up @@ -174,7 +174,7 @@ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
* element. The prefix '&lt;name&gt;.resource.loader.' is
* automatically added to the property name.</dd>
*
* @version CVS $Id: VelocityGenerator.java,v 1.8 2003/09/04 09:38:33 cziegeler Exp $
* @version CVS $Id: VelocityGenerator.java,v 1.9 2003/09/05 07:40:21 cziegeler Exp $
*/
public class VelocityGenerator extends ServiceableGenerator
implements Initializable, Configurable, LogSystem {
Expand Down
Expand Up @@ -84,7 +84,7 @@ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
*
* @author <a href="mailto:michael.gerzabek@at.efp.cc">Michael Gerzabek</a>
* @since 2.1
* @version CVS $Id: Web3RfcTransformer.java,v 1.6 2003/07/10 22:14:33 reinhard Exp $
* @version CVS $Id: Web3RfcTransformer.java,v 1.7 2003/09/05 07:40:20 cziegeler Exp $
*/
public class Web3RfcTransformer extends AbstractTransformer
implements Composable, Disposable, Configurable, Poolable, Recyclable {
Expand Down Expand Up @@ -149,15 +149,15 @@ public void recycle() {
this.streamer = null;
this.error = false;
this.startcount = 0;
super.recycle();
}

/** Free all ressources */
public void dispose() {
this.recycle();
this.manager = null;
this.attributes = null;
this.web3source = null;
this.tags = null;
this.manager = null;
this.attributes = null;
this.web3source = null;
this.tags = null;
}

/**
Expand Down
@@ -1,58 +1,53 @@
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2001 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Apache Cocoon" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
============================================================================
The Apache Software License, Version 1.1
============================================================================
Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without modifica-
tion, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. The end-user documentation included with the redistribution, if any, must
include the following acknowledgment: "This product includes software
developed by the Apache Software Foundation (http://www.apache.org/)."
Alternately, this acknowledgment may appear in the software itself, if
and wherever such third-party acknowledgments normally appear.
4. The names "Apache Cocoon" and "Apache Software Foundation" must not be
used to endorse or promote products derived from this software without
prior written permission. For written permission, please contact
apache@apache.org.
5. Products derived from this software may not be called "Apache", nor may
"Apache" appear in their name, without prior written permission of the
Apache Software Foundation.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This software consists of voluntary contributions made by many individuals
on behalf of the Apache Software Foundation and was originally created by
Stefano Mazzocchi <stefano@apache.org>. For more information on the Apache
Software Foundation, please see <http://www.apache.org/>.
*/
package org.apache.cocoon.acting;

import org.apache.avalon.framework.configuration.Configuration;
Expand Down Expand Up @@ -127,7 +122,7 @@
* @author <a href="mailto:czoffoli@littlepenguin.org">Christian Zoffoli</a>
* @author <a href="mailto:Martin.Man@seznam.cz">Martin Man</a>
* @since 2002/02/03
* @version CVS $Id: DbXMLAuthenticatorAction.java,v 1.3 2003/03/24 14:33:54 stefano Exp $
* @version CVS $Id: DbXMLAuthenticatorAction.java,v 1.4 2003/09/05 07:40:21 cziegeler Exp $
*
* based on DatabaseAuthenticatorAction created by Martin Man <Martin.Man@seznam.cz>
*/
Expand Down
Expand Up @@ -156,10 +156,10 @@ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
* </ul>
*
* @author <a href="mailto:vgritsenko@apache.org">Vadim Gritsenko</a>
* @version CVS $Id: XMLDBTransformer.java,v 1.4 2003/08/07 13:34:46 joerg Exp $
* @version CVS $Id: XMLDBTransformer.java,v 1.5 2003/09/05 07:40:21 cziegeler Exp $
*/
public class XMLDBTransformer extends AbstractTransformer
implements Disposable, CacheableProcessingComponent, Configurable, Initializable {
implements CacheableProcessingComponent, Configurable, Initializable {

private static String XMLDB_URI = "http://apache.org/cocoon/xmldb/1.0";
private static String XMLDB_QUERY_ELEMENT = "query";
Expand Down Expand Up @@ -635,11 +635,7 @@ public void recycle() {
getLogger().error("Failed to close collection " + base + ". Error " + e.errorCode, e);
}
collection = null;
super.recycle();
}

/**
* dispose
*/
public void dispose() {
}
}

0 comments on commit 71f1612

Please sign in to comment.