You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sirona.apache.org by ol...@apache.org on 2013/10/23 06:26:26 UTC

svn commit: r1534907 [3/4] - in /incubator/sirona/trunk: aop/src/main/java/org/apache/sirona/aop/ aop/src/test/java/org/apache/sirona/aop/ aspectj/src/main/java/org/apache/sirona/aspectj/ aspectj/src/test/java/org/apache/sirona/aspectj/ cdi/src/main/ja...

Modified: incubator/sirona/trunk/jdbc/src/main/java/org/apache/sirona/jdbc/MonitoredDataSource.java
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/jdbc/src/main/java/org/apache/sirona/jdbc/MonitoredDataSource.java?rev=1534907&r1=1534906&r2=1534907&view=diff
==============================================================================
--- incubator/sirona/trunk/jdbc/src/main/java/org/apache/sirona/jdbc/MonitoredDataSource.java (original)
+++ incubator/sirona/trunk/jdbc/src/main/java/org/apache/sirona/jdbc/MonitoredDataSource.java Wed Oct 23 04:26:23 2013
@@ -1,147 +1,147 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-package org.apache.sirona.jdbc;
-
-
-import org.apache.sirona.Role;
-import org.apache.sirona.counters.Counter;
-import org.apache.sirona.repositories.Repository;
-
-import javax.sql.DataSource;
-import java.io.PrintWriter;
-import java.sql.Connection;
-import java.sql.SQLException;
-import java.sql.SQLFeatureNotSupportedException;
-import java.util.logging.Logger;
-
-
-/**
- * @author <a href="mailto:nicolas@apache.org">Nicolas De Loof</a>
- */
-public class MonitoredDataSource implements DataSource {
-    /**
-     * delegate DataSource
-     */
-    private DataSource dataSource;
-
-    /**
-     * dataSource name
-     */
-    private String dataSourceName = DataSource.class.getName();
-    private Counter counter;
-
-    /**
-     * Constructor
-     *
-     * @param dataSource the datasource to counter
-     */
-    public MonitoredDataSource(final DataSource dataSource) {
-        this.dataSource = dataSource;
-        this.counter = Repository.INSTANCE.getCounter(new Counter.Key(Role.JDBC, dataSourceName));
-    }
-
-    public MonitoredDataSource() {
-        super();
-    }
-
-    public void setDataSource(final DataSource dataSource) {
-        this.dataSource = dataSource;
-    }
-
-    /**
-     * @param dataSourceName the dataSourceName to set
-     */
-    public void setDataSourceName(final String dataSourceName) {
-        this.dataSourceName = dataSourceName;
-    }
-
-    /**
-     * @param counter the counter to set
-     */
-    public void setCounter(final Counter counter) {
-        this.counter = counter;
-    }
-
-    protected Connection monitor(final Connection connection) {
-        return MonitoredConnection.monitor(connection, counter);
-    }
-
-    /**
-     * @return the dataSource
-     */
-    protected DataSource getDataSource() {
-        return dataSource;
-    }
-
-    /**
-     * {@inheritDoc}
-     *
-     * @see javax.sql.DataSource#getConnection()
-     */
-    public Connection getConnection()
-        throws SQLException {
-        return monitor(getDataSource().getConnection());
-    }
-
-    /**
-     * {@inheritDoc}
-     *
-     * @see javax.sql.DataSource#getConnection(java.lang.String, java.lang.String)
-     */
-    public Connection getConnection(String username, String password)
-        throws SQLException {
-        return monitor(getDataSource().getConnection(username, password));
-    }
-
-    public int getLoginTimeout()
-        throws SQLException {
-        return getDataSource().getLoginTimeout();
-    }
-
-    public PrintWriter getLogWriter()
-        throws SQLException {
-        return getDataSource().getLogWriter();
-    }
-
-    public void setLoginTimeout(int seconds)
-        throws SQLException {
-        getDataSource().setLoginTimeout(seconds);
-    }
-
-    public void setLogWriter(PrintWriter out)
-        throws SQLException {
-        getDataSource().setLogWriter(out);
-    }
-
-    // --- jdbc4 ----
-
-    public boolean isWrapperFor(Class<?> iface)
-        throws SQLException {
-        return getDataSource().isWrapperFor(iface);
-    }
-
-    public <T> T unwrap(Class<T> iface)
-        throws SQLException {
-        return getDataSource().unwrap(iface);
-    }
-
-    public Logger getParentLogger()
-        throws SQLFeatureNotSupportedException {
-        return Logger.getLogger("commons-monitoring.datasource");
-    }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+
+package org.apache.sirona.jdbc;
+
+
+import org.apache.sirona.Role;
+import org.apache.sirona.counters.Counter;
+import org.apache.sirona.repositories.Repository;
+
+import javax.sql.DataSource;
+import java.io.PrintWriter;
+import java.sql.Connection;
+import java.sql.SQLException;
+import java.sql.SQLFeatureNotSupportedException;
+import java.util.logging.Logger;
+
+
+/**
+ * @author <a href="mailto:nicolas@apache.org">Nicolas De Loof</a>
+ */
+public class MonitoredDataSource implements DataSource {
+    /**
+     * delegate DataSource
+     */
+    private DataSource dataSource;
+
+    /**
+     * dataSource name
+     */
+    private String dataSourceName = DataSource.class.getName();
+    private Counter counter;
+
+    /**
+     * Constructor
+     *
+     * @param dataSource the datasource to counter
+     */
+    public MonitoredDataSource(final DataSource dataSource) {
+        this.dataSource = dataSource;
+        this.counter = Repository.INSTANCE.getCounter(new Counter.Key(Role.JDBC, dataSourceName));
+    }
+
+    public MonitoredDataSource() {
+        super();
+    }
+
+    public void setDataSource(final DataSource dataSource) {
+        this.dataSource = dataSource;
+    }
+
+    /**
+     * @param dataSourceName the dataSourceName to set
+     */
+    public void setDataSourceName(final String dataSourceName) {
+        this.dataSourceName = dataSourceName;
+    }
+
+    /**
+     * @param counter the counter to set
+     */
+    public void setCounter(final Counter counter) {
+        this.counter = counter;
+    }
+
+    protected Connection monitor(final Connection connection) {
+        return MonitoredConnection.monitor(connection, counter);
+    }
+
+    /**
+     * @return the dataSource
+     */
+    protected DataSource getDataSource() {
+        return dataSource;
+    }
+
+    /**
+     * {@inheritDoc}
+     *
+     * @see javax.sql.DataSource#getConnection()
+     */
+    public Connection getConnection()
+        throws SQLException {
+        return monitor(getDataSource().getConnection());
+    }
+
+    /**
+     * {@inheritDoc}
+     *
+     * @see javax.sql.DataSource#getConnection(java.lang.String, java.lang.String)
+     */
+    public Connection getConnection(String username, String password)
+        throws SQLException {
+        return monitor(getDataSource().getConnection(username, password));
+    }
+
+    public int getLoginTimeout()
+        throws SQLException {
+        return getDataSource().getLoginTimeout();
+    }
+
+    public PrintWriter getLogWriter()
+        throws SQLException {
+        return getDataSource().getLogWriter();
+    }
+
+    public void setLoginTimeout(int seconds)
+        throws SQLException {
+        getDataSource().setLoginTimeout(seconds);
+    }
+
+    public void setLogWriter(PrintWriter out)
+        throws SQLException {
+        getDataSource().setLogWriter(out);
+    }
+
+    // --- jdbc4 ----
+
+    public boolean isWrapperFor(Class<?> iface)
+        throws SQLException {
+        return getDataSource().isWrapperFor(iface);
+    }
+
+    public <T> T unwrap(Class<T> iface)
+        throws SQLException {
+        return getDataSource().unwrap(iface);
+    }
+
+    public Logger getParentLogger()
+        throws SQLFeatureNotSupportedException {
+        return Logger.getLogger("commons-monitoring.datasource");
+    }
+}

Propchange: incubator/sirona/trunk/jdbc/src/main/java/org/apache/sirona/jdbc/MonitoredDataSource.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/sirona/trunk/jdbc/src/main/java/org/apache/sirona/jdbc/MonitoredPreparedStatement.java
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/jdbc/src/main/java/org/apache/sirona/jdbc/MonitoredPreparedStatement.java?rev=1534907&r1=1534906&r2=1534907&view=diff
==============================================================================
--- incubator/sirona/trunk/jdbc/src/main/java/org/apache/sirona/jdbc/MonitoredPreparedStatement.java (original)
+++ incubator/sirona/trunk/jdbc/src/main/java/org/apache/sirona/jdbc/MonitoredPreparedStatement.java Wed Oct 23 04:26:23 2013
@@ -1,57 +1,57 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-package org.apache.sirona.jdbc;
-
-import org.apache.sirona.Role;
-import org.apache.sirona.counters.Counter;
-import org.apache.sirona.repositories.Repository;
-import org.apache.sirona.stopwatches.StopWatch;
-
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-import java.sql.PreparedStatement;
-
-/**
- * @author ndeloof
- */
-public class MonitoredPreparedStatement extends MonitoredStatement {
-    private final PreparedStatement statement;
-    private final String sql;
-
-    public MonitoredPreparedStatement(final PreparedStatement statement, final String sql) {
-        super(statement);
-        this.statement = statement;
-        this.sql = sql;
-    }
-
-    @Override
-    public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable {
-        final String name = method.getName();
-        if ((args == null || args.length == 0) && name.startsWith("execute")) {
-            final StopWatch stopWatch = Repository.INSTANCE.start(Repository.INSTANCE.getCounter(new Counter.Key(Role.JDBC, sql)));
-            try {
-                return method.invoke(statement, args);
-            } catch (final InvocationTargetException e) {
-                throw extractSQLException(e);
-            } finally {
-                stopWatch.stop();
-            }
-        }
-        return super.invoke(proxy, method, args);
-    }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+package org.apache.sirona.jdbc;
+
+import org.apache.sirona.Role;
+import org.apache.sirona.counters.Counter;
+import org.apache.sirona.repositories.Repository;
+import org.apache.sirona.stopwatches.StopWatch;
+
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.sql.PreparedStatement;
+
+/**
+ * @author ndeloof
+ */
+public class MonitoredPreparedStatement extends MonitoredStatement {
+    private final PreparedStatement statement;
+    private final String sql;
+
+    public MonitoredPreparedStatement(final PreparedStatement statement, final String sql) {
+        super(statement);
+        this.statement = statement;
+        this.sql = sql;
+    }
+
+    @Override
+    public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable {
+        final String name = method.getName();
+        if ((args == null || args.length == 0) && name.startsWith("execute")) {
+            final StopWatch stopWatch = Repository.INSTANCE.start(Repository.INSTANCE.getCounter(new Counter.Key(Role.JDBC, sql)));
+            try {
+                return method.invoke(statement, args);
+            } catch (final InvocationTargetException e) {
+                throw extractSQLException(e);
+            } finally {
+                stopWatch.stop();
+            }
+        }
+        return super.invoke(proxy, method, args);
+    }
+
+}

Propchange: incubator/sirona/trunk/jdbc/src/main/java/org/apache/sirona/jdbc/MonitoredPreparedStatement.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/sirona/trunk/jdbc/src/main/java/org/apache/sirona/jdbc/MonitoredStatement.java
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/jdbc/src/main/java/org/apache/sirona/jdbc/MonitoredStatement.java?rev=1534907&r1=1534906&r2=1534907&view=diff
==============================================================================
--- incubator/sirona/trunk/jdbc/src/main/java/org/apache/sirona/jdbc/MonitoredStatement.java (original)
+++ incubator/sirona/trunk/jdbc/src/main/java/org/apache/sirona/jdbc/MonitoredStatement.java Wed Oct 23 04:26:23 2013
@@ -1,77 +1,77 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-package org.apache.sirona.jdbc;
-
-import org.apache.sirona.Role;
-import org.apache.sirona.counters.Counter;
-import org.apache.sirona.repositories.Repository;
-import org.apache.sirona.stopwatches.StopWatch;
-
-import java.lang.reflect.InvocationHandler;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-import java.sql.SQLException;
-import java.sql.Statement;
-
-public class MonitoredStatement implements InvocationHandler {
-    private final Statement statement;
-
-    public MonitoredStatement(final Statement statement) {
-        this.statement = statement;
-    }
-
-    protected SQLException monitor(final SQLException sqle) {
-        final String name = "SQLException:" + sqle.getSQLState() + ":" + sqle.getErrorCode();
-        Repository.INSTANCE.getCounter(new Counter.Key(Role.FAILURES, name)).add(1);
-        return sqle;
-    }
-
-    @Override
-    public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable {
-        final String name = method.getName();
-        if (name.startsWith("execute")) {
-            final StopWatch stopWatch;
-            if (name.endsWith("Batch") && (args == null || args.length == 0)) {
-                stopWatch = Repository.INSTANCE.start(Repository.INSTANCE.getCounter(new Counter.Key(Role.JDBC, "batch")));
-            } else {
-                stopWatch = Repository.INSTANCE.start(Repository.INSTANCE.getCounter(new Counter.Key(Role.JDBC, (String) args[0])));
-            }
-
-            try {
-                return doInvoke(method, args);
-            } catch (final InvocationTargetException e) {
-                throw extractSQLException(e);
-            } finally {
-                stopWatch.stop();
-            }
-        }
-        return doInvoke(method, args);
-    }
-
-    private Object doInvoke(final Method method, final Object[] args) throws IllegalAccessException, InvocationTargetException {
-        return method.invoke(statement, args);
-    }
-
-    protected Throwable extractSQLException(final InvocationTargetException e) throws Throwable {
-        final Throwable th = e.getCause();
-        if (SQLException.class.isInstance(th)) {
-            return monitor(SQLException.class.cast(th));
-        }
-        return th;
-    }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+
+package org.apache.sirona.jdbc;
+
+import org.apache.sirona.Role;
+import org.apache.sirona.counters.Counter;
+import org.apache.sirona.repositories.Repository;
+import org.apache.sirona.stopwatches.StopWatch;
+
+import java.lang.reflect.InvocationHandler;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.sql.SQLException;
+import java.sql.Statement;
+
+public class MonitoredStatement implements InvocationHandler {
+    private final Statement statement;
+
+    public MonitoredStatement(final Statement statement) {
+        this.statement = statement;
+    }
+
+    protected SQLException monitor(final SQLException sqle) {
+        final String name = "SQLException:" + sqle.getSQLState() + ":" + sqle.getErrorCode();
+        Repository.INSTANCE.getCounter(new Counter.Key(Role.FAILURES, name)).add(1);
+        return sqle;
+    }
+
+    @Override
+    public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable {
+        final String name = method.getName();
+        if (name.startsWith("execute")) {
+            final StopWatch stopWatch;
+            if (name.endsWith("Batch") && (args == null || args.length == 0)) {
+                stopWatch = Repository.INSTANCE.start(Repository.INSTANCE.getCounter(new Counter.Key(Role.JDBC, "batch")));
+            } else {
+                stopWatch = Repository.INSTANCE.start(Repository.INSTANCE.getCounter(new Counter.Key(Role.JDBC, (String) args[0])));
+            }
+
+            try {
+                return doInvoke(method, args);
+            } catch (final InvocationTargetException e) {
+                throw extractSQLException(e);
+            } finally {
+                stopWatch.stop();
+            }
+        }
+        return doInvoke(method, args);
+    }
+
+    private Object doInvoke(final Method method, final Object[] args) throws IllegalAccessException, InvocationTargetException {
+        return method.invoke(statement, args);
+    }
+
+    protected Throwable extractSQLException(final InvocationTargetException e) throws Throwable {
+        final Throwable th = e.getCause();
+        if (SQLException.class.isInstance(th)) {
+            return monitor(SQLException.class.cast(th));
+        }
+        return th;
+    }
+}

Propchange: incubator/sirona/trunk/jdbc/src/main/java/org/apache/sirona/jdbc/MonitoredStatement.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/jdbc/src/main/java/org/apache/sirona/jdbc/MonitoringDriver.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/jdbc/src/test/java/org/apache/sirona/jdbc/HsqlDBTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/jpa/src/main/java/org/apache/sirona/jpa/JPAProxyFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/jpa/src/main/java/org/apache/sirona/jpa/MonitoringPersistence.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/jpa/src/main/java/org/apache/sirona/jpa/OverridePersistenceXmlClassLoader.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/jpa/src/test/java/org/apache/sirona/jpa/EMFTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/jpa/src/test/java/org/apache/sirona/jpa/QueryTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/jpa/src/test/java/org/apache/sirona/jpa/entity/Address.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/jpa/src/test/java/org/apache/sirona/jpa/entity/Person.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/jta/src/main/java/org/apache/sirona/jta/JTAGauges.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/jta/src/main/java/org/apache/sirona/jta/JTAInterceptor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/jta/src/main/java/org/apache/sirona/jta/JTAMonitored.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/jta/src/test/java/org/apache/sirona/jta/GaugesTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/MonitoringController.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/handler/FilteringEndpoints.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/handler/HomeEndpoint.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/handler/api/Regex.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/handler/api/Template.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/handler/api/TemplateHelper.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/handler/internal/EndpointInfo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/handler/internal/Invoker.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/Plugin.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/PluginRepository.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/jmx/JMXEndpoints.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/jmx/JMXNode.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/jmx/JMXPlugin.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/json/Jsons.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/jta/JTAEndpoints.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/jta/JTAPlugin.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/jvm/JVMEndpoints.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/jvm/JVMPlugin.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/jvm/gauges/BaseMemoryGauge.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/jvm/gauges/CPUGauge.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/jvm/gauges/UsedMemoryGauge.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/ReportEndpoints.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/ReportPlugin.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/format/CSVFormat.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/format/Format.java
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/format/Format.java?rev=1534907&r1=1534906&r2=1534907&view=diff
==============================================================================
--- incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/format/Format.java (original)
+++ incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/format/Format.java Wed Oct 23 04:26:23 2013
@@ -1,34 +1,34 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-package org.apache.sirona.reporting.web.plugin.report.format;
-
-import org.apache.sirona.reporting.web.handler.api.Template;
-
-import java.util.Map;
-
-public interface Format {
-    String type();
-    Template render(Map<String, ?> params);
-
-    public static interface Defaults {
-        static final Format JSON = new JSONFormat();
-        static final Format XML = new XMLFormat();
-        static final Format CSV = new CSVFormat();
-        static final Format HTML = new HTMLFormat();
-    }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+
+package org.apache.sirona.reporting.web.plugin.report.format;
+
+import org.apache.sirona.reporting.web.handler.api.Template;
+
+import java.util.Map;
+
+public interface Format {
+    String type();
+    Template render(Map<String, ?> params);
+
+    public static interface Defaults {
+        static final Format JSON = new JSONFormat();
+        static final Format XML = new XMLFormat();
+        static final Format CSV = new CSVFormat();
+        static final Format HTML = new HTMLFormat();
+    }
+}

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/format/Format.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/format/HTMLFormat.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/format/JSONFormat.java
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/format/JSONFormat.java?rev=1534907&r1=1534906&r2=1534907&view=diff
==============================================================================
--- incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/format/JSONFormat.java (original)
+++ incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/format/JSONFormat.java Wed Oct 23 04:26:23 2013
@@ -1,41 +1,41 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-package org.apache.sirona.reporting.web.plugin.report.format;
-
-import org.apache.sirona.counters.MetricData;
-import org.apache.sirona.reporting.web.handler.api.Template;
-import org.apache.sirona.reporting.web.template.MapBuilder;
-import org.apache.sirona.repositories.Repository;
-
-import java.util.Map;
-
-public class JSONFormat implements Format {
-    @Override
-    public Template render(final Map<String, ?> params) {
-        return new Template("/templates/report/report-json.vm",
-            new MapBuilder<String, Object>()
-                .set("MetricData", MetricData.class)
-                .set("counters", Repository.INSTANCE.iterator())
-                .build(), false);
-    }
-
-    @Override
-    public String type() {
-        return "application/json";
-    }
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+
+package org.apache.sirona.reporting.web.plugin.report.format;
+
+import org.apache.sirona.counters.MetricData;
+import org.apache.sirona.reporting.web.handler.api.Template;
+import org.apache.sirona.reporting.web.template.MapBuilder;
+import org.apache.sirona.repositories.Repository;
+
+import java.util.Map;
+
+public class JSONFormat implements Format {
+    @Override
+    public Template render(final Map<String, ?> params) {
+        return new Template("/templates/report/report-json.vm",
+            new MapBuilder<String, Object>()
+                .set("MetricData", MetricData.class)
+                .set("counters", Repository.INSTANCE.iterator())
+                .build(), false);
+    }
+
+    @Override
+    public String type() {
+        return "application/json";
+    }
 }
\ No newline at end of file

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/format/JSONFormat.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/format/MapFormat.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/format/XMLFormat.java
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/format/XMLFormat.java?rev=1534907&r1=1534906&r2=1534907&view=diff
==============================================================================
--- incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/format/XMLFormat.java (original)
+++ incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/format/XMLFormat.java Wed Oct 23 04:26:23 2013
@@ -1,41 +1,41 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-package org.apache.sirona.reporting.web.plugin.report.format;
-
-import org.apache.sirona.counters.MetricData;
-import org.apache.sirona.reporting.web.handler.api.Template;
-import org.apache.sirona.reporting.web.template.MapBuilder;
-import org.apache.sirona.repositories.Repository;
-
-import java.util.Map;
-
-public class XMLFormat implements Format {
-    @Override
-    public Template render(final Map<String, ?> params) {
-        return new Template("/templates/report/report-xml.vm",
-            new MapBuilder<String, Object>()
-                .set("MetricData", MetricData.class)
-                .set("counters", Repository.INSTANCE.iterator())
-                .build(), false);
-    }
-
-    @Override
-    public String type() {
-        return "application/xml";
-    }
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+
+package org.apache.sirona.reporting.web.plugin.report.format;
+
+import org.apache.sirona.counters.MetricData;
+import org.apache.sirona.reporting.web.handler.api.Template;
+import org.apache.sirona.reporting.web.template.MapBuilder;
+import org.apache.sirona.repositories.Repository;
+
+import java.util.Map;
+
+public class XMLFormat implements Format {
+    @Override
+    public Template render(final Map<String, ?> params) {
+        return new Template("/templates/report/report-xml.vm",
+            new MapBuilder<String, Object>()
+                .set("MetricData", MetricData.class)
+                .set("counters", Repository.INSTANCE.iterator())
+                .build(), false);
+    }
+
+    @Override
+    public String type() {
+        return "application/xml";
+    }
 }
\ No newline at end of file

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/report/format/XMLFormat.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/thread/ThreadEndpoints.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/thread/ThreadPlugin.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/web/WebEndpoints.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/plugin/web/WebPlugin.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/registration/MonitoringReportingInitializer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/template/MapBuilder.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/main/java/org/apache/sirona/reporting/web/template/Templates.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/sirona/trunk/reporting/src/test/java/org/apache/sirona/reporting/FormatsTest.java
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/reporting/src/test/java/org/apache/sirona/reporting/FormatsTest.java?rev=1534907&r1=1534906&r2=1534907&view=diff
==============================================================================
--- incubator/sirona/trunk/reporting/src/test/java/org/apache/sirona/reporting/FormatsTest.java (original)
+++ incubator/sirona/trunk/reporting/src/test/java/org/apache/sirona/reporting/FormatsTest.java Wed Oct 23 04:26:23 2013
@@ -1,94 +1,94 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-package org.apache.sirona.reporting;
-
-import org.apache.sirona.Role;
-import org.apache.sirona.counters.Counter;
-import org.apache.sirona.reporting.web.handler.api.Template;
-import org.apache.sirona.reporting.web.handler.api.TemplateHelper;
-import org.apache.sirona.reporting.web.plugin.report.format.CSVFormat;
-import org.apache.sirona.reporting.web.plugin.report.format.Format;
-import org.apache.sirona.reporting.web.template.Templates;
-import org.apache.sirona.repositories.Repository;
-import org.junit.AfterClass;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-import java.io.PrintWriter;
-import java.io.StringWriter;
-import java.util.Collections;
-
-import static org.junit.Assert.assertEquals;
-
-public class FormatsTest {
-    @BeforeClass
-    public static void setup() {
-        Repository.INSTANCE.clear();
-        Templates.init("", "");
-
-        final Counter counter = Repository.INSTANCE.getCounter(new Counter.Key(Role.FAILURES, "RendererTest"));
-        counter.updateConcurrency(1);
-        counter.add(1.);
-    }
-
-    @AfterClass
-    public static void clear() {
-        Repository.INSTANCE.clear();
-    }
-
-    @Test
-    public void renderToXML() throws Exception {
-        final StringWriter out = new StringWriter();
-        final TemplateHelper helper = new TemplateHelper(new PrintWriter(out), Collections.<String, Object>emptyMap());
-        final Template template = Format.Defaults.XML.render(Collections.<String, Object>emptyMap());
-        helper.renderPlain(template.getTemplate(), template.getUserParams());
-
-        assertEquals("<?xml version=\"1.0\"?> <repository> " +
-            "<counter name=\"RendererTest\" role=\"failures\" unit=\"u\" Hits=\"1.0\" Max=\"1.0\" Mean=\"1.0\" Min=\"1.0\" " +
-            "StandardDeviation=\"0.0\" Sum=\"1.0\" Variance=\"0.0\" Value=\"1.0\" Concurrency=\"0.0\" MaxConcurrency=\"1.0\" />" +
-            " </repository>", inline(out));
-    }
-
-    @Test
-    public void renderToJSON() throws Exception {
-        final StringWriter out = new StringWriter();
-        final TemplateHelper helper = new TemplateHelper(new PrintWriter(out), Collections.<String, Object>emptyMap());
-        final Template template = Format.Defaults.JSON.render(Collections.<String, Object>emptyMap());
-        helper.renderPlain(template.getTemplate(), template.getUserParams());
-
-        assertEquals("{\"counters\":[" +
-            " {\"name\":\"RendererTest\", \"role\":\"failures\",\"unit\":\"u\",\"Hits\":\"1.0\",\"Max\":\"1.0\",\"Mean\":\"1.0\",\"Min\":\"1.0\"," +
-            "\"StandardDeviation\":\"0.0\",\"Sum\":\"1.0\",\"Variance\":\"0.0\"," +
-            "\"Value\":\"1.0\",\"Concurrency\":\"0.0\",\"MaxConcurrency\":\"1.0\"} ]}", inline(out));
-    }
-
-    @Test
-    public void renderToCSV() throws Exception {
-        final StringWriter out = new StringWriter();
-        final TemplateHelper helper = new TemplateHelper(new PrintWriter(out), Collections.<String, Object>emptyMap());
-        final Template template = Format.Defaults.CSV.render(Collections.<String, Object>emptyMap());
-        helper.renderPlain(template.getTemplate(), template.getUserParams());
-
-        assertEquals(CSVFormat.HEADER +
-            "RendererTest;failures (u);1.0;1.0;1.0;1.0;0.0;1.0;0.0;1.0;0.0;1.0\n",
-            out.toString());
-    }
-
-    private static String inline(StringWriter out) {
-        return out.toString().replace("\r\n", " ").replace("\n", " ").replaceAll(" +", " ").replace("\t", "").trim();
-    }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+package org.apache.sirona.reporting;
+
+import org.apache.sirona.Role;
+import org.apache.sirona.counters.Counter;
+import org.apache.sirona.reporting.web.handler.api.Template;
+import org.apache.sirona.reporting.web.handler.api.TemplateHelper;
+import org.apache.sirona.reporting.web.plugin.report.format.CSVFormat;
+import org.apache.sirona.reporting.web.plugin.report.format.Format;
+import org.apache.sirona.reporting.web.template.Templates;
+import org.apache.sirona.repositories.Repository;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+import java.io.PrintWriter;
+import java.io.StringWriter;
+import java.util.Collections;
+
+import static org.junit.Assert.assertEquals;
+
+public class FormatsTest {
+    @BeforeClass
+    public static void setup() {
+        Repository.INSTANCE.clear();
+        Templates.init("", "");
+
+        final Counter counter = Repository.INSTANCE.getCounter(new Counter.Key(Role.FAILURES, "RendererTest"));
+        counter.updateConcurrency(1);
+        counter.add(1.);
+    }
+
+    @AfterClass
+    public static void clear() {
+        Repository.INSTANCE.clear();
+    }
+
+    @Test
+    public void renderToXML() throws Exception {
+        final StringWriter out = new StringWriter();
+        final TemplateHelper helper = new TemplateHelper(new PrintWriter(out), Collections.<String, Object>emptyMap());
+        final Template template = Format.Defaults.XML.render(Collections.<String, Object>emptyMap());
+        helper.renderPlain(template.getTemplate(), template.getUserParams());
+
+        assertEquals("<?xml version=\"1.0\"?> <repository> " +
+            "<counter name=\"RendererTest\" role=\"failures\" unit=\"u\" Hits=\"1.0\" Max=\"1.0\" Mean=\"1.0\" Min=\"1.0\" " +
+            "StandardDeviation=\"0.0\" Sum=\"1.0\" Variance=\"0.0\" Value=\"1.0\" Concurrency=\"0.0\" MaxConcurrency=\"1.0\" />" +
+            " </repository>", inline(out));
+    }
+
+    @Test
+    public void renderToJSON() throws Exception {
+        final StringWriter out = new StringWriter();
+        final TemplateHelper helper = new TemplateHelper(new PrintWriter(out), Collections.<String, Object>emptyMap());
+        final Template template = Format.Defaults.JSON.render(Collections.<String, Object>emptyMap());
+        helper.renderPlain(template.getTemplate(), template.getUserParams());
+
+        assertEquals("{\"counters\":[" +
+            " {\"name\":\"RendererTest\", \"role\":\"failures\",\"unit\":\"u\",\"Hits\":\"1.0\",\"Max\":\"1.0\",\"Mean\":\"1.0\",\"Min\":\"1.0\"," +
+            "\"StandardDeviation\":\"0.0\",\"Sum\":\"1.0\",\"Variance\":\"0.0\"," +
+            "\"Value\":\"1.0\",\"Concurrency\":\"0.0\",\"MaxConcurrency\":\"1.0\"} ]}", inline(out));
+    }
+
+    @Test
+    public void renderToCSV() throws Exception {
+        final StringWriter out = new StringWriter();
+        final TemplateHelper helper = new TemplateHelper(new PrintWriter(out), Collections.<String, Object>emptyMap());
+        final Template template = Format.Defaults.CSV.render(Collections.<String, Object>emptyMap());
+        helper.renderPlain(template.getTemplate(), template.getUserParams());
+
+        assertEquals(CSVFormat.HEADER +
+            "RendererTest;failures (u);1.0;1.0;1.0;1.0;0.0;1.0;0.0;1.0;0.0;1.0\n",
+            out.toString());
+    }
+
+    private static String inline(StringWriter out) {
+        return out.toString().replace("\r\n", " ").replace("\n", " ").replaceAll(" +", " ").replace("\t", "").trim();
+    }
+}

Propchange: incubator/sirona/trunk/reporting/src/test/java/org/apache/sirona/reporting/FormatsTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/reporting/src/test/java/org/apache/sirona/reporting/template/CounterDetailTemplateTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/sirona/trunk/spring/src/main/java/org/apache/sirona/spring/AopaliancePerformanceInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/spring/src/main/java/org/apache/sirona/spring/AopaliancePerformanceInterceptor.java?rev=1534907&r1=1534906&r2=1534907&view=diff
==============================================================================
--- incubator/sirona/trunk/spring/src/main/java/org/apache/sirona/spring/AopaliancePerformanceInterceptor.java (original)
+++ incubator/sirona/trunk/spring/src/main/java/org/apache/sirona/spring/AopaliancePerformanceInterceptor.java Wed Oct 23 04:26:23 2013
@@ -1,45 +1,45 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-package org.apache.sirona.spring;
-
-import org.aopalliance.intercept.MethodInterceptor;
-import org.aopalliance.intercept.MethodInvocation;
-import org.apache.sirona.aop.AbstractPerformanceInterceptor;
-
-/**
- * Spring-aop implementation of PerformanceInterceptor.
- *
- * @author <a href="mailto:nicolas@apache.org">Nicolas De Loof</a>
- */
-public class AopaliancePerformanceInterceptor extends AbstractPerformanceInterceptor<MethodInvocation> implements MethodInterceptor {
-    @Override
-    public Object invoke(final MethodInvocation invocation) throws Throwable {
-        return doInvoke(invocation);
-    }
-
-    @Override
-    protected String getCounterName(final MethodInvocation invocation) {
-        return getCounterName(invocation.getThis(), invocation.getMethod());
-    }
-
-    @Override
-    protected Object proceed(final MethodInvocation invocation) throws Throwable {
-        return invocation.proceed();
-    }
-
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+
+package org.apache.sirona.spring;
+
+import org.aopalliance.intercept.MethodInterceptor;
+import org.aopalliance.intercept.MethodInvocation;
+import org.apache.sirona.aop.AbstractPerformanceInterceptor;
+
+/**
+ * Spring-aop implementation of PerformanceInterceptor.
+ *
+ * @author <a href="mailto:nicolas@apache.org">Nicolas De Loof</a>
+ */
+public class AopaliancePerformanceInterceptor extends AbstractPerformanceInterceptor<MethodInvocation> implements MethodInterceptor {
+    @Override
+    public Object invoke(final MethodInvocation invocation) throws Throwable {
+        return doInvoke(invocation);
+    }
+
+    @Override
+    protected String getCounterName(final MethodInvocation invocation) {
+        return getCounterName(invocation.getThis(), invocation.getMethod());
+    }
+
+    @Override
+    protected Object proceed(final MethodInvocation invocation) throws Throwable {
+        return invocation.proceed();
+    }
+
 }
\ No newline at end of file

Propchange: incubator/sirona/trunk/spring/src/main/java/org/apache/sirona/spring/AopaliancePerformanceInterceptor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/sirona/trunk/spring/src/main/java/org/apache/sirona/spring/BeanNameMonitoringAutoProxyCreator.java
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/spring/src/main/java/org/apache/sirona/spring/BeanNameMonitoringAutoProxyCreator.java?rev=1534907&r1=1534906&r2=1534907&view=diff
==============================================================================
--- incubator/sirona/trunk/spring/src/main/java/org/apache/sirona/spring/BeanNameMonitoringAutoProxyCreator.java (original)
+++ incubator/sirona/trunk/spring/src/main/java/org/apache/sirona/spring/BeanNameMonitoringAutoProxyCreator.java Wed Oct 23 04:26:23 2013
@@ -1,45 +1,45 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-package org.apache.sirona.spring;
-
-import org.apache.sirona.aop.DefaultMonitorNameExtractor;
-import org.apache.sirona.aop.MonitorNameExtractor;
-import org.springframework.aop.TargetSource;
-import org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator;
-
-public class BeanNameMonitoringAutoProxyCreator extends BeanNameAutoProxyCreator {
-    private MonitorNameExtractor counterNameExtractor = DefaultMonitorNameExtractor.INSTANCE;
-
-    @Override
-    protected Object[] getAdvicesAndAdvisorsForBean(final Class beanClass, final String beanName, final TargetSource targetSource) {
-        if (super.getAdvicesAndAdvisorsForBean(beanClass, beanName, targetSource) != DO_NOT_PROXY) {
-            final AopaliancePerformanceInterceptor interceptor = new AopaliancePerformanceInterceptor();
-            interceptor.setMonitorNameExtractor(counterNameExtractor);
-            return new Object[] { interceptor };
-        }
-        return DO_NOT_PROXY;
-    }
-
-    public void setCounterNameExtractor(final MonitorNameExtractor counterNameExtractor) {
-        this.counterNameExtractor = counterNameExtractor;
-    }
-
-    public MonitorNameExtractor getCounterNameExtractor() {
-        return counterNameExtractor;
-    }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+
+package org.apache.sirona.spring;
+
+import org.apache.sirona.aop.DefaultMonitorNameExtractor;
+import org.apache.sirona.aop.MonitorNameExtractor;
+import org.springframework.aop.TargetSource;
+import org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator;
+
+public class BeanNameMonitoringAutoProxyCreator extends BeanNameAutoProxyCreator {
+    private MonitorNameExtractor counterNameExtractor = DefaultMonitorNameExtractor.INSTANCE;
+
+    @Override
+    protected Object[] getAdvicesAndAdvisorsForBean(final Class beanClass, final String beanName, final TargetSource targetSource) {
+        if (super.getAdvicesAndAdvisorsForBean(beanClass, beanName, targetSource) != DO_NOT_PROXY) {
+            final AopaliancePerformanceInterceptor interceptor = new AopaliancePerformanceInterceptor();
+            interceptor.setMonitorNameExtractor(counterNameExtractor);
+            return new Object[] { interceptor };
+        }
+        return DO_NOT_PROXY;
+    }
+
+    public void setCounterNameExtractor(final MonitorNameExtractor counterNameExtractor) {
+        this.counterNameExtractor = counterNameExtractor;
+    }
+
+    public MonitorNameExtractor getCounterNameExtractor() {
+        return counterNameExtractor;
+    }
+}

Propchange: incubator/sirona/trunk/spring/src/main/java/org/apache/sirona/spring/BeanNameMonitoringAutoProxyCreator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/sirona/trunk/spring/src/main/java/org/apache/sirona/spring/PointcutMonitoringAutoProxyCreator.java
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/spring/src/main/java/org/apache/sirona/spring/PointcutMonitoringAutoProxyCreator.java?rev=1534907&r1=1534906&r2=1534907&view=diff
==============================================================================
--- incubator/sirona/trunk/spring/src/main/java/org/apache/sirona/spring/PointcutMonitoringAutoProxyCreator.java (original)
+++ incubator/sirona/trunk/spring/src/main/java/org/apache/sirona/spring/PointcutMonitoringAutoProxyCreator.java Wed Oct 23 04:26:23 2013
@@ -1,68 +1,68 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-package org.apache.sirona.spring;
-
-import org.aopalliance.aop.Advice;
-import org.apache.sirona.aop.DefaultMonitorNameExtractor;
-import org.apache.sirona.aop.MonitorNameExtractor;
-import org.springframework.aop.Advisor;
-import org.springframework.aop.Pointcut;
-import org.springframework.aop.PointcutAdvisor;
-import org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator;
-import org.springframework.aop.support.DefaultPointcutAdvisor;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Creates monitored proxies for beans that match a pointcut.
- *
- * @author <a href="mailto:nicolas@apache.org">Nicolas De Loof</a>
- */
-public class PointcutMonitoringAutoProxyCreator extends AbstractAdvisorAutoProxyCreator {
-    private MonitorNameExtractor monitorNameExtractor = DefaultMonitorNameExtractor.INSTANCE;
-    private Pointcut pointcut;
-
-    @Override
-    protected List<Advisor> findCandidateAdvisors() {
-        final AopaliancePerformanceInterceptor interceptor = new AopaliancePerformanceInterceptor();
-        interceptor.setMonitorNameExtractor(monitorNameExtractor);
-
-        final PointcutAdvisor adivsor = createPointcutAdvisor(interceptor);
-
-        final List<Advisor> adivisors = new ArrayList<Advisor>(1);
-        adivisors.add(adivsor);
-        return adivisors;
-    }
-
-    protected PointcutAdvisor createPointcutAdvisor(Advice advice) {
-        return new DefaultPointcutAdvisor(pointcut, advice);
-    }
-
-    public void setMonitorNameExtractor(final MonitorNameExtractor monitorNameExtractor) {
-        this.monitorNameExtractor = monitorNameExtractor;
-    }
-
-    public void setPointcut(final Pointcut pointcut) {
-        this.pointcut = pointcut;
-    }
-
-    public MonitorNameExtractor getMonitorNameExtractor() {
-        return monitorNameExtractor;
-    }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+
+package org.apache.sirona.spring;
+
+import org.aopalliance.aop.Advice;
+import org.apache.sirona.aop.DefaultMonitorNameExtractor;
+import org.apache.sirona.aop.MonitorNameExtractor;
+import org.springframework.aop.Advisor;
+import org.springframework.aop.Pointcut;
+import org.springframework.aop.PointcutAdvisor;
+import org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator;
+import org.springframework.aop.support.DefaultPointcutAdvisor;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * Creates monitored proxies for beans that match a pointcut.
+ *
+ * @author <a href="mailto:nicolas@apache.org">Nicolas De Loof</a>
+ */
+public class PointcutMonitoringAutoProxyCreator extends AbstractAdvisorAutoProxyCreator {
+    private MonitorNameExtractor monitorNameExtractor = DefaultMonitorNameExtractor.INSTANCE;
+    private Pointcut pointcut;
+
+    @Override
+    protected List<Advisor> findCandidateAdvisors() {
+        final AopaliancePerformanceInterceptor interceptor = new AopaliancePerformanceInterceptor();
+        interceptor.setMonitorNameExtractor(monitorNameExtractor);
+
+        final PointcutAdvisor adivsor = createPointcutAdvisor(interceptor);
+
+        final List<Advisor> adivisors = new ArrayList<Advisor>(1);
+        adivisors.add(adivsor);
+        return adivisors;
+    }
+
+    protected PointcutAdvisor createPointcutAdvisor(Advice advice) {
+        return new DefaultPointcutAdvisor(pointcut, advice);
+    }
+
+    public void setMonitorNameExtractor(final MonitorNameExtractor monitorNameExtractor) {
+        this.monitorNameExtractor = monitorNameExtractor;
+    }
+
+    public void setPointcut(final Pointcut pointcut) {
+        this.pointcut = pointcut;
+    }
+
+    public MonitorNameExtractor getMonitorNameExtractor() {
+        return monitorNameExtractor;
+    }
+}

Propchange: incubator/sirona/trunk/spring/src/main/java/org/apache/sirona/spring/PointcutMonitoringAutoProxyCreator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/spring/src/test/java/org/apache/sirona/spring/SpringMonitoringTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/spring/src/test/java/org/apache/sirona/spring/service/MyService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/src/site/markdown/basis.md
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/src/site/markdown/collector.md
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/src/site/markdown/concepts.md
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/src/site/markdown/configuration.md
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/src/site/markdown/cube.md
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/src/site/markdown/graphite.md
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/src/site/markdown/index.md
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/src/site/markdown/instrumentation.md
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/src/site/markdown/jpa.md
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/src/site/markdown/jta.md
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/src/site/markdown/plugins.md
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/src/site/markdown/reporting.md
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/src/site/markdown/web.md
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/sirona/trunk/web/src/main/java/org/apache/sirona/web/discovery/GaugeDiscoveryListener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/sirona/trunk/web/src/main/java/org/apache/sirona/web/jsp/StartTag.java
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/web/src/main/java/org/apache/sirona/web/jsp/StartTag.java?rev=1534907&r1=1534906&r2=1534907&view=diff
==============================================================================
--- incubator/sirona/trunk/web/src/main/java/org/apache/sirona/web/jsp/StartTag.java (original)
+++ incubator/sirona/trunk/web/src/main/java/org/apache/sirona/web/jsp/StartTag.java Wed Oct 23 04:26:23 2013
@@ -1,62 +1,62 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-package org.apache.sirona.web.jsp;
-
-import org.apache.sirona.Role;
-import org.apache.sirona.counters.Counter;
-import org.apache.sirona.repositories.Repository;
-import org.apache.sirona.stopwatches.StopWatch;
-
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.tagext.TagSupport;
-
-import static org.apache.sirona.web.jsp.TagUtils.getScope;
-
-/**
- * A JSP tag to counter JSP rendering performances
- *
- * @author <a href="mailto:nicolas@apache.org">Nicolas De Loof</a>
- */
-public class StartTag extends TagSupport {
-    private String id;
-    private String scope;
-    private String name;
-
-    public void setId(String id) {
-        this.id = id;
-    }
-
-    @Override
-    public int doStartTag() throws JspException {
-        final StopWatch stopWatch = Repository.INSTANCE.start(Repository.INSTANCE.getCounter(new Counter.Key(Role.JSP, name)));
-        if (scope != null) {
-            pageContext.setAttribute(id, stopWatch, getScope(scope));
-        } else {
-            pageContext.setAttribute(id, stopWatch);
-        }
-        return EVAL_PAGE;
-    }
-
-    public void setScope(String scope) {
-        this.scope = scope;
-    }
-
-    public void setName(String name) {
-        this.name = name;
-    }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+
+package org.apache.sirona.web.jsp;
+
+import org.apache.sirona.Role;
+import org.apache.sirona.counters.Counter;
+import org.apache.sirona.repositories.Repository;
+import org.apache.sirona.stopwatches.StopWatch;
+
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.tagext.TagSupport;
+
+import static org.apache.sirona.web.jsp.TagUtils.getScope;
+
+/**
+ * A JSP tag to counter JSP rendering performances
+ *
+ * @author <a href="mailto:nicolas@apache.org">Nicolas De Loof</a>
+ */
+public class StartTag extends TagSupport {
+    private String id;
+    private String scope;
+    private String name;
+
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    @Override
+    public int doStartTag() throws JspException {
+        final StopWatch stopWatch = Repository.INSTANCE.start(Repository.INSTANCE.getCounter(new Counter.Key(Role.JSP, name)));
+        if (scope != null) {
+            pageContext.setAttribute(id, stopWatch, getScope(scope));
+        } else {
+            pageContext.setAttribute(id, stopWatch);
+        }
+        return EVAL_PAGE;
+    }
+
+    public void setScope(String scope) {
+        this.scope = scope;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+}

Propchange: incubator/sirona/trunk/web/src/main/java/org/apache/sirona/web/jsp/StartTag.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/sirona/trunk/web/src/main/java/org/apache/sirona/web/jsp/StartTagTei.java
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/web/src/main/java/org/apache/sirona/web/jsp/StartTagTei.java?rev=1534907&r1=1534906&r2=1534907&view=diff
==============================================================================
--- incubator/sirona/trunk/web/src/main/java/org/apache/sirona/web/jsp/StartTagTei.java (original)
+++ incubator/sirona/trunk/web/src/main/java/org/apache/sirona/web/jsp/StartTagTei.java Wed Oct 23 04:26:23 2013
@@ -1,36 +1,36 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-package org.apache.sirona.web.jsp;
-
-import org.apache.sirona.stopwatches.StopWatch;
-
-import javax.servlet.jsp.tagext.TagData;
-import javax.servlet.jsp.tagext.TagExtraInfo;
-import javax.servlet.jsp.tagext.VariableInfo;
-
-/**
- * @author <a href="mailto:nicolas@apache.org">Nicolas De Loof</a>
- */
-public class StartTagTei extends TagExtraInfo {
-    @Override
-    public VariableInfo[] getVariableInfo(final TagData data) {
-        return new VariableInfo[] {
-            new VariableInfo(data.getAttributeString("id"), StopWatch.class.getName(), true, VariableInfo.AT_END)
-        };
-    }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+
+package org.apache.sirona.web.jsp;
+
+import org.apache.sirona.stopwatches.StopWatch;
+
+import javax.servlet.jsp.tagext.TagData;
+import javax.servlet.jsp.tagext.TagExtraInfo;
+import javax.servlet.jsp.tagext.VariableInfo;
+
+/**
+ * @author <a href="mailto:nicolas@apache.org">Nicolas De Loof</a>
+ */
+public class StartTagTei extends TagExtraInfo {
+    @Override
+    public VariableInfo[] getVariableInfo(final TagData data) {
+        return new VariableInfo[] {
+            new VariableInfo(data.getAttributeString("id"), StopWatch.class.getName(), true, VariableInfo.AT_END)
+        };
+    }
+}

Propchange: incubator/sirona/trunk/web/src/main/java/org/apache/sirona/web/jsp/StartTagTei.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/sirona/trunk/web/src/main/java/org/apache/sirona/web/jsp/StopTag.java
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/web/src/main/java/org/apache/sirona/web/jsp/StopTag.java?rev=1534907&r1=1534906&r2=1534907&view=diff
==============================================================================
--- incubator/sirona/trunk/web/src/main/java/org/apache/sirona/web/jsp/StopTag.java (original)
+++ incubator/sirona/trunk/web/src/main/java/org/apache/sirona/web/jsp/StopTag.java Wed Oct 23 04:26:23 2013
@@ -1,69 +1,69 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-package org.apache.sirona.web.jsp;
-
-import org.apache.sirona.stopwatches.StopWatch;
-
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.tagext.TagSupport;
-
-import static org.apache.sirona.web.jsp.TagUtils.getScope;
-
-/**
- * A JSP tag to counter JSP rendering performances
- *
- * @author <a href="mailto:nicolas@apache.org">Nicolas De Loof</a>
- */
-public class StopTag extends TagSupport {
-    private String id;
-    private String scope;
-
-    /**
-     * @param id the id to set
-     */
-    public void setId(String id) {
-        this.id = id;
-    }
-
-    /**
-     * {@inheritDoc}
-     *
-     * @see javax.servlet.jsp.tagext.TagSupport#doStartTag()
-     */
-    @Override
-    public int doStartTag() throws JspException {
-        StopWatch stopWatch;
-        if (scope != null) {
-            stopWatch = (StopWatch) pageContext.getAttribute(id, getScope(scope));
-        } else {
-            stopWatch = (StopWatch) pageContext.getAttribute(id);
-        }
-        if (stopWatch == null) {
-            throw new JspException("No StopWatch under ID " + id + " and scope " + scope);
-        }
-        stopWatch.stop();
-        return EVAL_PAGE;
-    }
-
-    /**
-     * @param scope the scope to set
-     */
-    public void setScope(final String scope) {
-        this.scope = scope;
-    }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+
+package org.apache.sirona.web.jsp;
+
+import org.apache.sirona.stopwatches.StopWatch;
+
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.tagext.TagSupport;
+
+import static org.apache.sirona.web.jsp.TagUtils.getScope;
+
+/**
+ * A JSP tag to counter JSP rendering performances
+ *
+ * @author <a href="mailto:nicolas@apache.org">Nicolas De Loof</a>
+ */
+public class StopTag extends TagSupport {
+    private String id;
+    private String scope;
+
+    /**
+     * @param id the id to set
+     */
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    /**
+     * {@inheritDoc}
+     *
+     * @see javax.servlet.jsp.tagext.TagSupport#doStartTag()
+     */
+    @Override
+    public int doStartTag() throws JspException {
+        StopWatch stopWatch;
+        if (scope != null) {
+            stopWatch = (StopWatch) pageContext.getAttribute(id, getScope(scope));
+        } else {
+            stopWatch = (StopWatch) pageContext.getAttribute(id);
+        }
+        if (stopWatch == null) {
+            throw new JspException("No StopWatch under ID " + id + " and scope " + scope);
+        }
+        stopWatch.stop();
+        return EVAL_PAGE;
+    }
+
+    /**
+     * @param scope the scope to set
+     */
+    public void setScope(final String scope) {
+        this.scope = scope;
+    }
+}

Propchange: incubator/sirona/trunk/web/src/main/java/org/apache/sirona/web/jsp/StopTag.java
------------------------------------------------------------------------------
    svn:eol-style = native