Consistent formatting of license headers, package javadocs, and import declarations

This commit is contained in:
Juergen Hoeller
2014-10-21 00:30:42 +02:00
parent b6fdcffc94
commit 8325b10080
2059 changed files with 3944 additions and 5473 deletions

View File

@@ -1,9 +1,5 @@
/**
*
* Annotation support for DAOs. Contains a bean post-processor for translating
* persistence exceptions based on a repository stereotype annotation.
*
*/
package org.springframework.dao.annotation;

View File

@@ -1,6 +1,4 @@
/**
*
* Exception hierarchy enabling sophisticated error handling independent
* of the data access approach in use. For example, when DAOs and data
* access frameworks use the exceptions in this package (and custom
@@ -14,7 +12,5 @@
* <p>The classes in this package are discussed in Chapter 9 of
* <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0764543857/">Expert One-On-One J2EE Design and Development</a>
* by Rod Johnson (Wrox, 2002).
*
*/
package org.springframework.dao;

View File

@@ -1,9 +1,5 @@
/**
*
* Support classes for DAO implementations,
* providing miscellaneous utility methods.
*
*/
package org.springframework.dao.support;

View File

@@ -20,7 +20,6 @@ import java.lang.reflect.InvocationHandler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import javax.resource.NotSupportedException;
import javax.resource.ResourceException;
import javax.resource.cci.Connection;

View File

@@ -20,7 +20,6 @@ import java.lang.reflect.InvocationHandler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import javax.resource.ResourceException;
import javax.resource.cci.Connection;
import javax.resource.cci.ConnectionFactory;

View File

@@ -1,10 +1,6 @@
/**
*
* Provides a utility class for easy ConnectionFactory access,
* a PlatformTransactionManager for local CCI transactions,
* and various simple ConnectionFactory proxies/adapters.
*
*/
package org.springframework.jca.cci.connection;

View File

@@ -17,7 +17,6 @@
package org.springframework.jca.cci.core;
import java.sql.SQLException;
import javax.resource.ResourceException;
import javax.resource.cci.Connection;
import javax.resource.cci.ConnectionFactory;

View File

@@ -17,7 +17,6 @@
package org.springframework.jca.cci.core;
import java.sql.SQLException;
import javax.resource.ResourceException;
import javax.resource.cci.ConnectionFactory;
import javax.resource.cci.Interaction;

View File

@@ -17,7 +17,6 @@
package org.springframework.jca.cci.core;
import java.sql.SQLException;
import javax.resource.ResourceException;
import javax.resource.cci.Record;

View File

@@ -1,9 +1,5 @@
/**
*
* Provides the core JCA CCI support, based on CciTemplate
* and its associated callback interfaces.
*
*/
package org.springframework.jca.cci.core;

View File

@@ -19,7 +19,6 @@ package org.springframework.jca.cci.core.support;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import javax.resource.cci.Record;
import javax.resource.cci.Streamable;

View File

@@ -1,8 +1,5 @@
/**
*
* Classes supporting the {@code org.springframework.jca.cci.core} package.
* Contains a DAO base class for CciTemplate usage.
*
*/
package org.springframework.jca.cci.core.support;

View File

@@ -17,7 +17,6 @@
package org.springframework.jca.cci.object;
import java.io.IOException;
import javax.resource.cci.ConnectionFactory;
import javax.resource.cci.InteractionSpec;
import javax.resource.cci.Record;

View File

@@ -17,7 +17,6 @@
package org.springframework.jca.cci.object;
import java.sql.SQLException;
import javax.resource.ResourceException;
import javax.resource.cci.ConnectionFactory;
import javax.resource.cci.InteractionSpec;

View File

@@ -1,11 +1,8 @@
/**
*
* The classes in this package represent EIS operations as threadsafe,
* reusable objects. This higher level of CCI abstraction depends on the
* lower-level abstraction in the {@code org.springframework.jca.cci.core} package.
* Exceptions thrown are as in the {@code org.springframework.dao} package,
* meaning that code using this package does not need to worry about error handling.
*
*/
package org.springframework.jca.cci.object;

View File

@@ -1,10 +1,7 @@
/**
*
* This package contains Spring's support for the Common Client Interface (CCI),
* as defined by the J2EE Connector Architecture. It is conceptually similar
* to the {@code org.springframework.jdbc} package, providing the same
* levels of data access abstraction.
*
*/
package org.springframework.jca.cci;

View File

@@ -1,9 +1,5 @@
/**
*
* Integration package that allows for deploying a Spring application context
* as a JCA 1.5 compliant RAR file.
*
*/
package org.springframework.jca.context;

View File

@@ -1,8 +1,4 @@
/**
*
* This package provides a facility for generic JCA message endpoint management.
*
*/
package org.springframework.jca.endpoint;

View File

@@ -17,7 +17,6 @@
package org.springframework.jca.support;
import java.util.Timer;
import javax.resource.spi.BootstrapContext;
import javax.resource.spi.UnavailableException;
import javax.resource.spi.XATerminator;

View File

@@ -1,9 +1,5 @@
/**
*
* Provides generic support classes for JCA usage within Spring,
* mainly for local setup of a JCA ResourceAdapter and/or ConnectionFactory.
*
*/
package org.springframework.jca.support;

View File

@@ -1,9 +1,5 @@
/**
*
* Convenience package for obtaining a GlassFish JCA WorkManager for use in
* web applications. Provides a Spring TaskExecutor adapter for GlassFish.
*
*/
package org.springframework.jca.work.glassfish;

View File

@@ -1,9 +1,5 @@
/**
*
* Convenience package for obtaining a JBoss JCA WorkManager for use in
* web applications. Provides a Spring TaskExecutor adapter for JBoss.
*
*/
package org.springframework.jca.work.jboss;

View File

@@ -1,9 +1,5 @@
/**
*
* Convenience classes for scheduling based on the JCA 1.5 WorkManager facility,
* as supported within JCA 1.5 ResourceAdapters.
*
*/
package org.springframework.jca.work;

View File

@@ -20,9 +20,9 @@ import java.io.Serializable;
import java.lang.reflect.AnnotatedElement;
import java.util.ArrayList;
import org.springframework.core.annotation.AnnotatedElementUtils;
import org.springframework.core.annotation.AnnotationAttributes;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.core.annotation.AnnotatedElementUtils;
import org.springframework.transaction.interceptor.NoRollbackRuleAttribute;
import org.springframework.transaction.interceptor.RollbackRuleAttribute;
import org.springframework.transaction.interceptor.RuleBasedTransactionAttribute;

View File

@@ -20,9 +20,9 @@ import java.io.Serializable;
import java.lang.reflect.AnnotatedElement;
import java.util.ArrayList;
import org.springframework.core.annotation.AnnotatedElementUtils;
import org.springframework.core.annotation.AnnotationAttributes;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.core.annotation.AnnotatedElementUtils;
import org.springframework.transaction.interceptor.NoRollbackRuleAttribute;
import org.springframework.transaction.interceptor.RollbackRuleAttribute;
import org.springframework.transaction.interceptor.RuleBasedTransactionAttribute;

View File

@@ -1,10 +1,6 @@
/**
*
* JDK 1.5+ annotation for transaction demarcation.
* Java 5 annotation for transaction demarcation.
* Hooked into Spring's transaction interception infrastructure
* via a special TransactionAttributeSource implementation.
*
*/
package org.springframework.transaction.annotation;

View File

@@ -1,9 +1,5 @@
/**
*
* Support package for declarative transaction configuration,
* with XML schema being the primary configuration format.
*
*/
package org.springframework.transaction.config;

View File

@@ -16,8 +16,13 @@
package org.springframework.transaction.interceptor;
import java.lang.reflect.Method;
import java.util.Properties;
import java.util.concurrent.ConcurrentHashMap;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.beans.factory.InitializingBean;
@@ -31,10 +36,6 @@ import org.springframework.transaction.support.CallbackPreferringPlatformTransac
import org.springframework.transaction.support.TransactionCallback;
import org.springframework.util.StringUtils;
import java.lang.reflect.Method;
import java.util.Properties;
import java.util.concurrent.ConcurrentHashMap;
/**
* Base class for transactional aspects, such as the {@link TransactionInterceptor}
* or an AspectJ aspect.

View File

@@ -16,18 +16,19 @@
package org.springframework.transaction.interceptor;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.aop.support.AopUtils;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.transaction.PlatformTransactionManager;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.Properties;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.aop.support.AopUtils;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.transaction.PlatformTransactionManager;
/**
* AOP Alliance MethodInterceptor for declarative transaction
* management using the common Spring transaction infrastructure

View File

@@ -1,6 +1,4 @@
/**
*
* AOP-based solution for declarative transaction demarcation.
* Builds on the AOP infrastructure in org.springframework.aop.framework.
* Any POJO can be transactionally advised with Spring.
@@ -12,7 +10,5 @@
* delivers transactional advice, based on the Spring transaction abstraction.
* This allows declarative transaction management in any environment,
* even without JTA if an application uses only a single database.
*
*/
package org.springframework.transaction.interceptor;

View File

@@ -1,8 +1,4 @@
/**
*
* Transaction SPI implementation for JTA.
*
*/
package org.springframework.transaction.jta;

View File

@@ -1,10 +1,6 @@
/**
*
* Exception hierarchy for Spring's transaction infrastructure,
* independent of any specific transaction management system.
* Contains transaction manager, definition, and status interfaces.
*
*/
package org.springframework.transaction;

View File

@@ -1,10 +1,6 @@
/**
*
* Support classes for the org.springframework.transaction package.
* Provides an abstract base class for transaction manager implementations,
* and a template plus callback for transaction demarcation.
*
*/
package org.springframework.transaction.support;

View File

@@ -16,10 +16,10 @@
package org.springframework.dao.annotation;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.persistence.PersistenceException;
import junit.framework.TestCase;

View File

@@ -25,6 +25,7 @@ import javax.resource.cci.LocalTransaction;
import javax.resource.cci.Record;
import org.junit.Test;
import org.springframework.dao.DataRetrievalFailureException;
import org.springframework.jca.cci.connection.CciLocalTransactionManager;
import org.springframework.jca.cci.core.CciTemplate;

View File

@@ -17,7 +17,6 @@
package org.springframework.jca.cci;
import java.sql.SQLException;
import javax.resource.NotSupportedException;
import javax.resource.ResourceException;
import javax.resource.cci.Connection;
@@ -32,6 +31,7 @@ import javax.resource.cci.RecordFactory;
import javax.resource.cci.ResultSet;
import org.junit.Test;
import org.springframework.jca.cci.connection.ConnectionSpecConnectionFactoryAdapter;
import org.springframework.jca.cci.connection.NotSupportedRecordFactory;
import org.springframework.jca.cci.core.CciTemplate;

View File

@@ -25,6 +25,7 @@ import javax.resource.cci.Record;
import javax.resource.cci.RecordFactory;
import org.junit.Test;
import org.springframework.jca.cci.core.RecordCreator;
import org.springframework.jca.cci.object.MappingRecordOperation;
import org.springframework.jca.cci.object.SimpleRecordOperation;

View File

@@ -21,10 +21,10 @@ import java.lang.reflect.Method;
import junit.framework.TestCase;
import org.springframework.aop.support.AopUtils;
import org.springframework.tests.sample.beans.ITestBean;
import org.springframework.tests.transaction.CallCountingTransactionManager;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.tests.sample.beans.ITestBean;
import org.springframework.tests.transaction.CallCountingTransactionManager;
import org.springframework.transaction.interceptor.TransactionAttribute;
import org.springframework.transaction.interceptor.TransactionAttributeSource;
import org.springframework.transaction.interceptor.TransactionInterceptor;

View File

@@ -19,7 +19,6 @@ package org.springframework.transaction.annotation;
import java.lang.management.ManagementFactory;
import java.util.Collection;
import java.util.Map;
import javax.management.MBeanServer;
import javax.management.ObjectName;

View File

@@ -17,6 +17,7 @@
package org.springframework.transaction.annotation;
import java.util.Map;
import javax.annotation.PostConstruct;
import org.junit.Test;
@@ -35,8 +36,6 @@ import org.springframework.transaction.annotation.AnnotationTransactionNamespace
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import javax.annotation.PostConstruct;
/**
* Tests demonstrating use of @EnableTransactionManagement @Configuration classes.
*

View File

@@ -21,9 +21,9 @@ import java.lang.reflect.Proxy;
import java.util.Map;
import junit.framework.TestCase;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.aop.support.AopUtils;
import org.springframework.aop.support.StaticMethodMatcherPointcut;
import org.springframework.aop.target.HotSwappableTargetSource;

View File

@@ -16,15 +16,15 @@
package org.springframework.transaction.interceptor;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
import java.io.IOException;
import junit.framework.TestCase;
import org.springframework.beans.FatalBeanException;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
/**
* Unit tests for the {@link RollbackRuleAttribute} class.
*

View File

@@ -16,8 +16,6 @@
package org.springframework.transaction.interceptor;
import static org.junit.Assert.*;
import java.io.IOException;
import java.rmi.RemoteException;
import java.util.Collections;
@@ -25,8 +23,11 @@ import java.util.LinkedList;
import java.util.List;
import org.junit.Test;
import org.springframework.transaction.TransactionDefinition;
import static org.junit.Assert.*;
/**
* @author Rod Johnson
* @author Juergen Hoeller

View File

@@ -17,13 +17,14 @@
package org.springframework.transaction.interceptor;
import static org.junit.Assert.*;
import java.io.IOException;
import org.junit.Test;
import org.springframework.transaction.TransactionDefinition;
import static org.junit.Assert.*;
/**
* Tests to check conversion from String to TransactionAttribute.
*

View File

@@ -18,10 +18,10 @@ package org.springframework.transaction.interceptor;
import java.util.Properties;
import org.springframework.util.SerializationTestUtils;
import junit.framework.TestCase;
import org.springframework.util.SerializationTestUtils;
/**
*
* @author Rod Johnson

View File

@@ -16,8 +16,6 @@
package org.springframework.transaction.interceptor;
import static org.junit.Assert.*;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
@@ -25,8 +23,11 @@ import java.util.Properties;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.transaction.TransactionDefinition;
import static org.junit.Assert.*;
/**
* Unit tests for the various {@link TransactionAttributeSource} implementations.
*

View File

@@ -16,10 +16,6 @@
package org.springframework.transaction.interceptor;
import static org.junit.Assert.*;
import static org.mockito.BDDMockito.given;
import static org.mockito.Mockito.*;
import java.io.Serializable;
import java.util.Properties;
@@ -36,6 +32,12 @@ import org.springframework.transaction.TransactionException;
import org.springframework.transaction.TransactionStatus;
import org.springframework.util.SerializationTestUtils;
import static org.junit.Assert.*;
import static org.mockito.BDDMockito.*;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
/**
* Mock object based tests for TransactionInterceptor.
*

View File

@@ -20,7 +20,6 @@ import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import javax.transaction.Synchronization;
import com.ibm.wsspi.uow.UOWAction;

View File

@@ -20,6 +20,9 @@ import javax.transaction.RollbackException;
import javax.transaction.Status;
import javax.transaction.UserTransaction;
import com.ibm.wsspi.uow.UOWAction;
import com.ibm.wsspi.uow.UOWException;
import com.ibm.wsspi.uow.UOWManager;
import junit.framework.TestCase;
import org.springframework.dao.OptimisticLockingFailureException;
@@ -33,10 +36,6 @@ import org.springframework.transaction.support.DefaultTransactionDefinition;
import org.springframework.transaction.support.TransactionCallback;
import org.springframework.transaction.support.TransactionSynchronizationManager;
import com.ibm.wsspi.uow.UOWAction;
import com.ibm.wsspi.uow.UOWException;
import com.ibm.wsspi.uow.UOWManager;
import static org.mockito.BDDMockito.*;
/**