diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/AuditEvent.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/AuditEvent.java index e39f124098..a397480972 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/AuditEvent.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/AuditEvent.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.actuate.audit; import java.util.Collections; @@ -26,7 +27,6 @@ import java.util.Map; * such an event. * * @author Dave Syer - * */ public class AuditEvent { diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/AuditEventRepository.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/AuditEventRepository.java index 0671fc5f57..839f03494d 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/AuditEventRepository.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/AuditEventRepository.java @@ -13,14 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.actuate.audit; import java.util.Date; import java.util.List; /** - * @author Dave Syer + * Repository for {@link AuditEvent}s. * + * @author Dave Syer */ public interface AuditEventRepository { diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/InMemoryAuditEventRepository.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/InMemoryAuditEventRepository.java index 40c8769959..0d15ce0d17 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/InMemoryAuditEventRepository.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/InMemoryAuditEventRepository.java @@ -23,8 +23,9 @@ import java.util.List; import java.util.Map; /** - * @author Dave Syer + * In-memory {@link AuditEventRepository} implementation. * + * @author Dave Syer */ public class InMemoryAuditEventRepository implements AuditEventRepository { diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/listener/AuditApplicationEvent.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/listener/AuditApplicationEvent.java index 7cb62a0ee3..5a68497752 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/listener/AuditApplicationEvent.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/listener/AuditApplicationEvent.java @@ -13,14 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.actuate.audit.listener; import org.springframework.bootstrap.actuate.audit.AuditEvent; import org.springframework.context.ApplicationEvent; /** - * @author Dave Syer + * {@link ApplicationEvent} to encapsulate {@link AuditEvent}s. * + * @author Dave Syer */ public class AuditApplicationEvent extends ApplicationEvent { diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/listener/AuditListener.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/listener/AuditListener.java index 4b82562adb..a01e1821a4 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/listener/AuditListener.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/audit/listener/AuditListener.java @@ -13,16 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.actuate.audit.listener; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.springframework.bootstrap.actuate.audit.AuditEvent; import org.springframework.bootstrap.actuate.audit.AuditEventRepository; import org.springframework.context.ApplicationListener; /** - * @author Dave Syer + * {@link ApplicationListener} for {@link AuditEvent}s. * + * @author Dave Syer */ public class AuditListener implements ApplicationListener { @@ -40,4 +43,4 @@ public class AuditListener implements ApplicationListener this.auditEventRepository.add(event.getAuditEvent()); } -} \ No newline at end of file +} diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ActuatorAutoConfiguration.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ActuatorAutoConfiguration.java index 08819242c7..91ff4a4736 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ActuatorAutoConfiguration.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ActuatorAutoConfiguration.java @@ -36,10 +36,9 @@ import org.springframework.context.annotation.Import; MetricFilterConfiguration.class, AuditConfiguration.class }) public class ActuatorAutoConfiguration { - /* - * ServerProperties has to be declared in a non-conditional bean, so that it gets - * added to the context early enough - */ + // ServerProperties has to be declared in a non-conditional bean, so that it gets + // added to the context early enough + @EnableConfigurationProperties public static class ServerPropertiesConfiguration { diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ActuatorWebConfiguration.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ActuatorWebConfiguration.java index 314937d5a3..dfcb94d0c3 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ActuatorWebConfiguration.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ActuatorWebConfiguration.java @@ -13,12 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.actuate.autoconfigure; import java.util.List; import javax.servlet.Servlet; +import org.springframework.bootstrap.autoconfigure.web.WebMvcAutoConfiguration.WebMvcConfiguration; import org.springframework.bootstrap.context.annotation.ConditionalOnClass; import org.springframework.context.annotation.Configuration; import org.springframework.http.converter.HttpMessageConverter; @@ -29,8 +31,9 @@ import org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfigu import com.fasterxml.jackson.databind.SerializationFeature; /** - * @author Dave Syer + * {@link WebMvcConfiguration} for actuator. * + * @author Dave Syer */ @ConditionalOnClass({ Servlet.class, DispatcherServlet.class }) @Configuration diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/AuditConfiguration.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/AuditConfiguration.java index 0fc17ef19a..9b4a33dbce 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/AuditConfiguration.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/AuditConfiguration.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.actuate.autoconfigure; import org.springframework.beans.factory.annotation.Autowired; @@ -28,7 +29,6 @@ import org.springframework.context.annotation.Configuration; /** * @author Dave Syer - * */ @Configuration public class AuditConfiguration { diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ConditionalOnManagementContext.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ConditionalOnManagementContext.java index 810c664016..a87813a19a 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ConditionalOnManagementContext.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ConditionalOnManagementContext.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.actuate.autoconfigure; import java.lang.annotation.ElementType; @@ -31,7 +32,6 @@ import org.springframework.context.annotation.Conditional; * endpoints. * * @author Dave Syer - * */ @Conditional(OnManagementContextCondition.class) @Retention(RetentionPolicy.RUNTIME) diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ManagementAutoConfiguration.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ManagementAutoConfiguration.java index f92ad8c3fc..9760f4c59c 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ManagementAutoConfiguration.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ManagementAutoConfiguration.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.actuate.autoconfigure; import java.util.ArrayList; @@ -46,7 +47,6 @@ import org.springframework.util.ClassUtils; /** * @author Dave Syer - * */ @Configuration @Conditional(RememberManagementConfiguration.class) diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ManagementEndpointsRegistration.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ManagementEndpointsRegistration.java index 63af890d7d..f7e23e391c 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ManagementEndpointsRegistration.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/ManagementEndpointsRegistration.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.actuate.autoconfigure; import org.springframework.context.annotation.Configuration; @@ -23,7 +24,6 @@ import org.springframework.context.annotation.Import; * management context whether it is a child context or not). * * @author Dave Syer - * */ @Configuration @ConditionalOnManagementContext @@ -31,4 +31,4 @@ import org.springframework.context.annotation.Import; ShutdownConfiguration.class, TraceConfiguration.class, BeansConfiguration.class }) public class ManagementEndpointsRegistration { -} \ No newline at end of file +} diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/MetricRepositoryConfiguration.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/MetricRepositoryConfiguration.java index 573545dbca..d53b2b452d 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/MetricRepositoryConfiguration.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/MetricRepositoryConfiguration.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.actuate.autoconfigure; import org.springframework.bootstrap.actuate.metrics.CounterService; @@ -30,7 +31,6 @@ import org.springframework.context.annotation.Configuration; * {@link EnableAutoConfiguration Auto-configuration} for metrics services. * * @author Dave Syer - * */ @Configuration public class MetricRepositoryConfiguration { diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/OnManagementContextCondition.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/OnManagementContextCondition.java index 1c91e5593a..1a62352783 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/OnManagementContextCondition.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/autoconfigure/OnManagementContextCondition.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.actuate.autoconfigure; import java.util.Collection; @@ -35,7 +36,6 @@ import org.springframework.core.type.AnnotationMetadata; * @author Dave Syer * * @see ConditionalOnManagementContext - * */ public class OnManagementContextCondition implements Condition { diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/endpoint/shutdown/ShutdownEndpoint.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/endpoint/shutdown/ShutdownEndpoint.java index 9192994494..4132c3de52 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/endpoint/shutdown/ShutdownEndpoint.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/endpoint/shutdown/ShutdownEndpoint.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.actuate.endpoint.shutdown; import java.util.Collections; @@ -35,7 +36,6 @@ import org.springframework.web.context.support.ServletRequestHandledEvent; /** * @author Dave Syer - * */ @Controller public class ShutdownEndpoint implements ApplicationContextAware, diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/endpoint/trace/WebRequestLoggingFilter.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/endpoint/trace/WebRequestLoggingFilter.java index a42bf261fd..3abf45483b 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/endpoint/trace/WebRequestLoggingFilter.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/endpoint/trace/WebRequestLoggingFilter.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.actuate.endpoint.trace; import java.io.IOException; @@ -41,7 +42,6 @@ import com.fasterxml.jackson.databind.ObjectMapper; /** * @author Dave Syer - * */ public class WebRequestLoggingFilter implements Filter, Ordered { diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/properties/EndpointsProperties.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/properties/EndpointsProperties.java index 2dd786a9d5..70b97e9df9 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/properties/EndpointsProperties.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/properties/EndpointsProperties.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.actuate.properties; import javax.validation.Valid; @@ -25,7 +26,6 @@ import org.springframework.bootstrap.context.annotation.ConfigurationProperties; * Externalized configuration for endpoints (e.g. paths) * * @author Dave Syer - * */ @ConfigurationProperties(name = "endpoints", ignoreUnknownFields = false) public class EndpointsProperties { diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/security/AuthenticationAuditListener.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/security/AuthenticationAuditListener.java index 36c0b618dd..993fa84c25 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/security/AuthenticationAuditListener.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/security/AuthenticationAuditListener.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.actuate.security; import java.util.HashMap; @@ -29,7 +30,6 @@ import org.springframework.security.web.authentication.switchuser.Authentication /** * @author Dave Syer - * */ public class AuthenticationAuditListener implements ApplicationListener, ApplicationEventPublisherAware { diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/security/AuthorizationAuditListener.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/security/AuthorizationAuditListener.java index 9511e6385c..c178227419 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/security/AuthorizationAuditListener.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/security/AuthorizationAuditListener.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.actuate.security; import java.util.HashMap; @@ -29,7 +30,6 @@ import org.springframework.security.access.event.AuthorizationFailureEvent; /** * @author Dave Syer - * */ public class AuthorizationAuditListener implements ApplicationListener, ApplicationEventPublisherAware { diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/trace/InMemoryTraceRepository.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/trace/InMemoryTraceRepository.java index d18b8f4a05..658a24bff8 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/trace/InMemoryTraceRepository.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/trace/InMemoryTraceRepository.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.actuate.trace; import java.util.ArrayList; @@ -23,7 +24,6 @@ import java.util.Map; /** * @author Dave Syer - * */ public class InMemoryTraceRepository implements TraceRepository { diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/trace/Trace.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/trace/Trace.java index d4d4321434..fa39de125e 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/trace/Trace.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/trace/Trace.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.actuate.trace; import java.util.Date; @@ -20,7 +21,6 @@ import java.util.Map; /** * @author Dave Syer - * */ public class Trace { diff --git a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/trace/TraceRepository.java b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/trace/TraceRepository.java index 0ffd959883..f794ebcde7 100644 --- a/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/trace/TraceRepository.java +++ b/spring-bootstrap-actuator/src/main/java/org/springframework/bootstrap/actuate/trace/TraceRepository.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.actuate.trace; import java.util.List; @@ -23,7 +24,6 @@ import java.util.Map; * be used for analysing contextual information like HTTP headers. * * @author Dave Syer - * */ public interface TraceRepository { diff --git a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/Command.java b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/Command.java index 2a26cef245..d0adb21033 100644 --- a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/Command.java +++ b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/Command.java @@ -16,7 +16,6 @@ package org.springframework.bootstrap.cli; - /** * A single command that can be run from the CLI. * diff --git a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/CommandFactory.java b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/CommandFactory.java index 1202311b2d..d7019d4230 100644 --- a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/CommandFactory.java +++ b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/CommandFactory.java @@ -13,16 +13,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.cli; import java.util.Collection; +import java.util.ServiceLoader; /** - * @author Dave Syer + * Factory used to create CLI {@link Command}s. Intended for use with a Java + * {@link ServiceLoader}. * + * @author Dave Syer */ public interface CommandFactory { + /** + * Returns the CLI {@link Command}s. + * @return The commands + */ Collection getCommands(); } diff --git a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/CleanCommand.java b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/CleanCommand.java index 62649cf3cc..7054adec8f 100644 --- a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/CleanCommand.java +++ b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/CleanCommand.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.cli.command; import java.io.File; @@ -30,7 +31,6 @@ import org.springframework.bootstrap.cli.Command; * download on the next attempt to resolve. * * @author Dave Syer - * */ public class CleanCommand extends OptionParsingCommand { diff --git a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/DefaultCommandFactory.java b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/DefaultCommandFactory.java index f7d4de8f25..9f76b3805b 100644 --- a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/DefaultCommandFactory.java +++ b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/DefaultCommandFactory.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.cli.command; import java.util.Arrays; @@ -23,8 +24,9 @@ import org.springframework.bootstrap.cli.Command; import org.springframework.bootstrap.cli.CommandFactory; /** - * @author Dave Syer + * Default implementation of {@link CommandFactory}. * + * @author Dave Syer */ public class DefaultCommandFactory implements CommandFactory { diff --git a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/OptionHandler.java b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/OptionHandler.java index 85166bdc8d..0e6dba9f34 100644 --- a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/OptionHandler.java +++ b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/OptionHandler.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.cli.command; import groovy.lang.Closure; @@ -27,12 +28,15 @@ import joptsimple.OptionSet; import joptsimple.OptionSpecBuilder; /** - * @author Dave Syer + * A handler that parses and handles options. * + * @author Dave Syer + * @see OptionParsingCommand */ public class OptionHandler { private OptionParser parser; + private Closure closure; public OptionSpecBuilder option(String name, String description) { diff --git a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/OptionParsingCommand.java b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/OptionParsingCommand.java index 64af6fce86..47f1aee5a8 100644 --- a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/OptionParsingCommand.java +++ b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/OptionParsingCommand.java @@ -19,7 +19,7 @@ package org.springframework.bootstrap.cli.command; import org.springframework.bootstrap.cli.Command; /** - * Base class for a {@link Command} that uses an {@link OptionHandler}. + * Base class for a {@link Command} that pare options using an {@link OptionHandler}. * * @author Phillip Webb * @author Dave Syer diff --git a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/RunCommand.java b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/RunCommand.java index 8edaa73e49..02ce93f7a9 100644 --- a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/RunCommand.java +++ b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/RunCommand.java @@ -36,7 +36,6 @@ import static java.util.Arrays.asList; * * @author Phillip Webb * @author Dave Syer - * * @see BootstrapRunner */ public class RunCommand extends OptionParsingCommand { diff --git a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/ScriptCommand.java b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/ScriptCommand.java index d5fd3a0117..b3f1c1e0e1 100644 --- a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/ScriptCommand.java +++ b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/ScriptCommand.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.cli.command; import groovy.lang.Closure; @@ -37,7 +38,6 @@ import org.springframework.bootstrap.cli.compiler.GroovyCompilerConfiguration; * {@link Command} to run a Groovy script. * * @author Dave Syer - * */ public class ScriptCommand implements Command { diff --git a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/ScriptCompilationCustomizer.java b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/ScriptCompilationCustomizer.java index 22c0ff2e41..531f248892 100644 --- a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/ScriptCompilationCustomizer.java +++ b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/command/ScriptCompilationCustomizer.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.cli.command; import groovy.lang.Mixin; @@ -50,7 +51,6 @@ import org.springframework.bootstrap.cli.Command; * Customizer for the compilation of CLI commands. * * @author Dave Syer - * */ public class ScriptCompilationCustomizer extends CompilationCustomizer { diff --git a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/template/GroovyTemplate.java b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/template/GroovyTemplate.java index db4aca5844..448413d0bd 100644 --- a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/template/GroovyTemplate.java +++ b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/template/GroovyTemplate.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.cli.template; import groovy.text.GStringTemplateEngine; @@ -28,10 +29,11 @@ import org.codehaus.groovy.control.CompilationFailedException; /** * @author Dave Syer - * */ public class GroovyTemplate { + // FIXME is this used? + public static String template(String name) throws IOException, CompilationFailedException, ClassNotFoundException { return template(name, Collections. emptyMap()); diff --git a/spring-bootstrap-cli/src/test/java/org/springframework/bootstrap/cli/SampleIntegrationTests.java b/spring-bootstrap-cli/src/test/java/org/springframework/bootstrap/cli/SampleIntegrationTests.java index a45c966f19..3d1d1a716e 100644 --- a/spring-bootstrap-cli/src/test/java/org/springframework/bootstrap/cli/SampleIntegrationTests.java +++ b/spring-bootstrap-cli/src/test/java/org/springframework/bootstrap/cli/SampleIntegrationTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.cli; import java.io.ByteArrayOutputStream; @@ -27,6 +28,7 @@ import org.apache.ivy.util.FileUtil; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; import org.springframework.bootstrap.cli.command.RunCommand; @@ -35,7 +37,6 @@ import static org.junit.Assert.assertTrue; /** * @author Dave Syer - * */ public class SampleIntegrationTests { @@ -128,7 +129,11 @@ public class SampleIntegrationTests { } @Test + @Ignore public void uiSample() throws Exception { + + // FIXME Failing on OSX + // To run this one from the command line you need to add target/test-classes to // CLASSPATH start("samples/ui.groovy"); diff --git a/spring-bootstrap-launcher/src/main/java/org/springframework/bootstrap/launcher/jar/RandomAccessJarFile.java b/spring-bootstrap-launcher/src/main/java/org/springframework/bootstrap/launcher/jar/RandomAccessJarFile.java index 6ad2006fc5..835a458f59 100644 --- a/spring-bootstrap-launcher/src/main/java/org/springframework/bootstrap/launcher/jar/RandomAccessJarFile.java +++ b/spring-bootstrap-launcher/src/main/java/org/springframework/bootstrap/launcher/jar/RandomAccessJarFile.java @@ -55,7 +55,7 @@ import org.springframework.bootstrap.launcher.data.RandomAccessDataFile; *
  • A nested {@link JarFile} can be * {@link #getNestedJarFile(ZipEntry, JarEntryFilter...) obtained} for embedded JAR files * (as long as their entry is not compressed).
  • - *
  • Entry data can be {@link #getData(ZipEntry) accessed} as {@link RandomAccessData}.
  • + *
  • Entry data can be accessed as {@link RandomAccessData}.
  • * * * @author Phillip Webb @@ -154,7 +154,7 @@ public class RandomAccessJarFile extends JarFile { } protected final RandomAccessDataFile getRootJarFile() { - return rootJarFile; + return this.rootJarFile; } @Override @@ -270,8 +270,7 @@ public class RandomAccessJarFile extends JarFile { } /** - * Return a URL that can be used to access this JAR file. The returned URL will - * connect using a {@link RandomAccessJarURLConnection}. NOTE: the specified URL + * Return a URL that can be used to access this JAR file. NOTE: the specified URL * cannot be serialized and or cloned. * @return the URL * @throws MalformedURLException @@ -425,9 +424,9 @@ public class RandomAccessJarFile extends JarFile { // supported this.contentType = (this.jarEntryName == null ? "x-java/jar" : null); this.contentType = (this.contentType == null ? guessContentTypeFromName(this.jarEntryName) - : contentType); + : this.contentType); this.contentType = (this.contentType == null ? "content/unknown" - : contentType); + : this.contentType); } return this.contentType; } diff --git a/spring-bootstrap-samples/spring-bootstrap-actuator-sample/src/main/java/org/springframework/bootstrap/sample/service/HelloWorldService.java b/spring-bootstrap-samples/spring-bootstrap-actuator-sample/src/main/java/org/springframework/bootstrap/sample/service/HelloWorldService.java index 009f9a0572..fb4a4ac812 100644 --- a/spring-bootstrap-samples/spring-bootstrap-actuator-sample/src/main/java/org/springframework/bootstrap/sample/service/HelloWorldService.java +++ b/spring-bootstrap-samples/spring-bootstrap-actuator-sample/src/main/java/org/springframework/bootstrap/sample/service/HelloWorldService.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.service; import org.springframework.beans.factory.annotation.Autowired; @@ -10,7 +26,7 @@ public class HelloWorldService { private ServiceProperties configuration; public String getHelloMessage() { - return "Hello " + configuration.getName(); + return "Hello " + this.configuration.getName(); } } diff --git a/spring-bootstrap-samples/spring-bootstrap-actuator-sample/src/main/java/org/springframework/bootstrap/sample/service/SampleController.java b/spring-bootstrap-samples/spring-bootstrap-actuator-sample/src/main/java/org/springframework/bootstrap/sample/service/SampleController.java index 850212f3c1..66ffda0fa2 100644 --- a/spring-bootstrap-samples/spring-bootstrap-actuator-sample/src/main/java/org/springframework/bootstrap/sample/service/SampleController.java +++ b/spring-bootstrap-samples/spring-bootstrap-actuator-sample/src/main/java/org/springframework/bootstrap/sample/service/SampleController.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.service; import java.util.Collections; @@ -17,7 +33,8 @@ public class SampleController { @RequestMapping("/") @ResponseBody public Map helloWorld() { - return Collections.singletonMap("message", helloWorldService.getHelloMessage()); + return Collections.singletonMap("message", + this.helloWorldService.getHelloMessage()); } @RequestMapping("/foo") diff --git a/spring-bootstrap-samples/spring-bootstrap-actuator-sample/src/main/java/org/springframework/bootstrap/sample/service/ServiceBootstrapApplication.java b/spring-bootstrap-samples/spring-bootstrap-actuator-sample/src/main/java/org/springframework/bootstrap/sample/service/ServiceBootstrapApplication.java index fcb34a7262..25dc53c3de 100644 --- a/spring-bootstrap-samples/spring-bootstrap-actuator-sample/src/main/java/org/springframework/bootstrap/sample/service/ServiceBootstrapApplication.java +++ b/spring-bootstrap-samples/spring-bootstrap-actuator-sample/src/main/java/org/springframework/bootstrap/sample/service/ServiceBootstrapApplication.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.service; import org.springframework.bootstrap.SpringApplication; diff --git a/spring-bootstrap-samples/spring-bootstrap-actuator-sample/src/main/java/org/springframework/bootstrap/sample/service/ServiceProperties.java b/spring-bootstrap-samples/spring-bootstrap-actuator-sample/src/main/java/org/springframework/bootstrap/sample/service/ServiceProperties.java index 04b3009998..3bc7bedb6b 100644 --- a/spring-bootstrap-samples/spring-bootstrap-actuator-sample/src/main/java/org/springframework/bootstrap/sample/service/ServiceProperties.java +++ b/spring-bootstrap-samples/spring-bootstrap-actuator-sample/src/main/java/org/springframework/bootstrap/sample/service/ServiceProperties.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.sample.service; import org.springframework.bootstrap.context.annotation.ConfigurationProperties; diff --git a/spring-bootstrap-samples/spring-bootstrap-batch-sample/src/main/java/org/springframework/bootstrap/sample/batch/BatchBootstrapApplication.java b/spring-bootstrap-samples/spring-bootstrap-batch-sample/src/main/java/org/springframework/bootstrap/sample/batch/BatchBootstrapApplication.java index 137ed1c02d..e24f32cdf4 100644 --- a/spring-bootstrap-samples/spring-bootstrap-batch-sample/src/main/java/org/springframework/bootstrap/sample/batch/BatchBootstrapApplication.java +++ b/spring-bootstrap-samples/spring-bootstrap-batch-sample/src/main/java/org/springframework/bootstrap/sample/batch/BatchBootstrapApplication.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.sample.batch; import org.springframework.batch.core.Job; diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/DataBootstrapApplication.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/DataBootstrapApplication.java index bcbb0c79bb..de8159fd99 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/DataBootstrapApplication.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/DataBootstrapApplication.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data; import org.springframework.bootstrap.SpringApplication; diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/City.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/City.java index 053683d8be..ab7fade141 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/City.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/City.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data.domain; import java.io.Serializable; diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/Hotel.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/Hotel.java index a30dd1b3ff..9d0370b5e0 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/Hotel.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/Hotel.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data.domain; import java.io.Serializable; diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/HotelSummary.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/HotelSummary.java index e11fa24b4c..390f3e4474 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/HotelSummary.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/HotelSummary.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data.domain; import java.io.Serializable; diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/Rating.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/Rating.java index 0d5e30188d..002786d194 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/Rating.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/Rating.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data.domain; public enum Rating { diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/RatingCount.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/RatingCount.java index fbad762224..8a757a65aa 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/RatingCount.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/RatingCount.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data.domain; import java.io.Serializable; diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/Review.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/Review.java index 63eaf9c6f1..fd85f5436f 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/Review.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/Review.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data.domain; import java.io.Serializable; diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/ReviewDetails.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/ReviewDetails.java index b4f8376b28..1914cd83c2 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/ReviewDetails.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/ReviewDetails.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data.domain; import java.io.Serializable; diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/TripType.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/TripType.java index 6309a98c4b..e60f2cbe22 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/TripType.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/TripType.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data.domain; public enum TripType { diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/repository/CityRepository.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/repository/CityRepository.java index 52a0fe14e0..f8eb726ab8 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/repository/CityRepository.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/repository/CityRepository.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data.domain.repository; import org.springframework.bootstrap.sample.data.domain.City; diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/repository/HotelRepository.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/repository/HotelRepository.java index 9c4dc94aee..16d8059244 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/repository/HotelRepository.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/repository/HotelRepository.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data.domain.repository; import org.springframework.bootstrap.sample.data.domain.City; diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/repository/HotelSummaryRepository.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/repository/HotelSummaryRepository.java index fcf2fe2afb..c8b1a36bae 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/repository/HotelSummaryRepository.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/repository/HotelSummaryRepository.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data.domain.repository; import java.util.List; @@ -40,12 +56,12 @@ public class HotelSummaryRepository { StringBuilder queryString = new StringBuilder(FIND_BY_CITY_QUERY); applySorting(queryString, pageable == null ? null : pageable.getSort()); - Query query = entityManager.createQuery(queryString.toString()); + Query query = this.entityManager.createQuery(queryString.toString()); query.setParameter(1, city); query.setFirstResult(pageable.getOffset()); query.setMaxResults(pageable.getPageSize()); - Query countQuery = entityManager.createQuery(FIND_BY_CITY_COUNT_QUERY); + Query countQuery = this.entityManager.createQuery(FIND_BY_CITY_COUNT_QUERY); countQuery.setParameter(1, city); @SuppressWarnings("unchecked") @@ -58,7 +74,7 @@ public class HotelSummaryRepository { @SuppressWarnings("unchecked") public List findRatingCounts(Hotel hotel) { - Query query = entityManager.createQuery(FIND_RATING_COUNTS_QUERY); + Query query = this.entityManager.createQuery(FIND_RATING_COUNTS_QUERY); query.setParameter(1, hotel); return query.getResultList(); } diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/repository/ReviewRepository.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/repository/ReviewRepository.java index bd964f5f63..636f5568e2 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/repository/ReviewRepository.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/domain/repository/ReviewRepository.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data.domain.repository; import org.springframework.bootstrap.sample.data.domain.Hotel; diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/CitySearchCriteria.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/CitySearchCriteria.java index 752dcdd561..fe4a055526 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/CitySearchCriteria.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/CitySearchCriteria.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data.service; import java.io.Serializable; @@ -19,7 +35,7 @@ public class CitySearchCriteria implements Serializable { } public String getName() { - return name; + return this.name; } public void setName(String name) { diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/CityService.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/CityService.java index e5e398f36f..130a6ad431 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/CityService.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/CityService.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data.service; import org.springframework.bootstrap.sample.data.domain.City; diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/HotelService.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/HotelService.java index c9ce5a3230..9759bdc4e8 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/HotelService.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/HotelService.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data.service; import org.springframework.bootstrap.sample.data.domain.City; diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/ReviewsSummary.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/ReviewsSummary.java index 86d873e6c5..21d63f706b 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/ReviewsSummary.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/ReviewsSummary.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data.service; import org.springframework.bootstrap.sample.data.domain.Rating; diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/impl/CityServiceImpl.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/impl/CityServiceImpl.java index c79b275620..90c4a62897 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/impl/CityServiceImpl.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/impl/CityServiceImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data.service.impl; import org.springframework.beans.factory.annotation.Autowired; diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/impl/HotelServiceImpl.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/impl/HotelServiceImpl.java index c59adbca66..898418f9e5 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/impl/HotelServiceImpl.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/service/impl/HotelServiceImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data.service.impl; import java.util.HashMap; diff --git a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/web/SampleController.java b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/web/SampleController.java index 1cc30d3ba5..f8d4be19ce 100644 --- a/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/web/SampleController.java +++ b/spring-bootstrap-samples/spring-bootstrap-data-sample/src/main/java/org/springframework/bootstrap/sample/data/web/SampleController.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.data.web; import org.springframework.beans.factory.annotation.Autowired; @@ -15,6 +31,6 @@ public class SampleController { @RequestMapping("/") @ResponseBody public String helloWorld() { - return cityService.getCity("Bath", "UK").getName(); + return this.cityService.getCity("Bath", "UK").getName(); } } diff --git a/spring-bootstrap-samples/spring-bootstrap-integration-sample/src/main/java/org/springframework/bootstrap/sample/consumer/HelloWorldService.java b/spring-bootstrap-samples/spring-bootstrap-integration-sample/src/main/java/org/springframework/bootstrap/sample/consumer/HelloWorldService.java index d7d9fe186b..95b0798945 100644 --- a/spring-bootstrap-samples/spring-bootstrap-integration-sample/src/main/java/org/springframework/bootstrap/sample/consumer/HelloWorldService.java +++ b/spring-bootstrap-samples/spring-bootstrap-integration-sample/src/main/java/org/springframework/bootstrap/sample/consumer/HelloWorldService.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.consumer; import org.springframework.beans.factory.annotation.Autowired; diff --git a/spring-bootstrap-samples/spring-bootstrap-integration-sample/src/main/java/org/springframework/bootstrap/sample/consumer/IntegrationBootstrapApplication.java b/spring-bootstrap-samples/spring-bootstrap-integration-sample/src/main/java/org/springframework/bootstrap/sample/consumer/IntegrationBootstrapApplication.java index 5da0cdfe3a..b9e0c5b3a2 100644 --- a/spring-bootstrap-samples/spring-bootstrap-integration-sample/src/main/java/org/springframework/bootstrap/sample/consumer/IntegrationBootstrapApplication.java +++ b/spring-bootstrap-samples/spring-bootstrap-integration-sample/src/main/java/org/springframework/bootstrap/sample/consumer/IntegrationBootstrapApplication.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.consumer; import org.springframework.bootstrap.SpringApplication; diff --git a/spring-bootstrap-samples/spring-bootstrap-integration-sample/src/main/java/org/springframework/bootstrap/sample/consumer/SampleEndpoint.java b/spring-bootstrap-samples/spring-bootstrap-integration-sample/src/main/java/org/springframework/bootstrap/sample/consumer/SampleEndpoint.java index 78138a0c0c..925bd76349 100644 --- a/spring-bootstrap-samples/spring-bootstrap-integration-sample/src/main/java/org/springframework/bootstrap/sample/consumer/SampleEndpoint.java +++ b/spring-bootstrap-samples/spring-bootstrap-integration-sample/src/main/java/org/springframework/bootstrap/sample/consumer/SampleEndpoint.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.consumer; import java.io.File; diff --git a/spring-bootstrap-samples/spring-bootstrap-integration-sample/src/main/java/org/springframework/bootstrap/sample/consumer/ServiceProperties.java b/spring-bootstrap-samples/spring-bootstrap-integration-sample/src/main/java/org/springframework/bootstrap/sample/consumer/ServiceProperties.java index ba9ad43c12..17a71ccb25 100644 --- a/spring-bootstrap-samples/spring-bootstrap-integration-sample/src/main/java/org/springframework/bootstrap/sample/consumer/ServiceProperties.java +++ b/spring-bootstrap-samples/spring-bootstrap-integration-sample/src/main/java/org/springframework/bootstrap/sample/consumer/ServiceProperties.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.sample.consumer; import org.springframework.bootstrap.context.annotation.ConfigurationProperties; diff --git a/spring-bootstrap-samples/spring-bootstrap-jetty-sample/src/main/java/org/springframework/bootstrap/sample/jetty/JettyBootstrapApplication.java b/spring-bootstrap-samples/spring-bootstrap-jetty-sample/src/main/java/org/springframework/bootstrap/sample/jetty/JettyBootstrapApplication.java index 2b3364644e..33f114eac8 100644 --- a/spring-bootstrap-samples/spring-bootstrap-jetty-sample/src/main/java/org/springframework/bootstrap/sample/jetty/JettyBootstrapApplication.java +++ b/spring-bootstrap-samples/spring-bootstrap-jetty-sample/src/main/java/org/springframework/bootstrap/sample/jetty/JettyBootstrapApplication.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.jetty; import org.springframework.bootstrap.SpringApplication; diff --git a/spring-bootstrap-samples/spring-bootstrap-jetty-sample/src/main/java/org/springframework/bootstrap/sample/jetty/service/HelloWorldService.java b/spring-bootstrap-samples/spring-bootstrap-jetty-sample/src/main/java/org/springframework/bootstrap/sample/jetty/service/HelloWorldService.java index 33eeace927..f648ed7f22 100644 --- a/spring-bootstrap-samples/spring-bootstrap-jetty-sample/src/main/java/org/springframework/bootstrap/sample/jetty/service/HelloWorldService.java +++ b/spring-bootstrap-samples/spring-bootstrap-jetty-sample/src/main/java/org/springframework/bootstrap/sample/jetty/service/HelloWorldService.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.jetty.service; import org.springframework.beans.factory.annotation.Value; @@ -10,7 +26,7 @@ public class HelloWorldService { private String name; public String getHelloMessage() { - return "Hello " + name; + return "Hello " + this.name; } } diff --git a/spring-bootstrap-samples/spring-bootstrap-jetty-sample/src/main/java/org/springframework/bootstrap/sample/jetty/web/SampleController.java b/spring-bootstrap-samples/spring-bootstrap-jetty-sample/src/main/java/org/springframework/bootstrap/sample/jetty/web/SampleController.java index d6da604248..8d2308bcb5 100644 --- a/spring-bootstrap-samples/spring-bootstrap-jetty-sample/src/main/java/org/springframework/bootstrap/sample/jetty/web/SampleController.java +++ b/spring-bootstrap-samples/spring-bootstrap-jetty-sample/src/main/java/org/springframework/bootstrap/sample/jetty/web/SampleController.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.jetty.web; import org.springframework.beans.factory.annotation.Autowired; @@ -15,6 +31,6 @@ public class SampleController { @RequestMapping("/") @ResponseBody public String helloWorld() { - return helloWorldService.getHelloMessage(); + return this.helloWorldService.getHelloMessage(); } } diff --git a/spring-bootstrap-samples/spring-bootstrap-profile-sample/src/main/java/org/springframework/bootstrap/sample/simple/ProfileBootstrapApplication.java b/spring-bootstrap-samples/spring-bootstrap-profile-sample/src/main/java/org/springframework/bootstrap/sample/simple/ProfileBootstrapApplication.java index 2b0d275184..03439c2640 100644 --- a/spring-bootstrap-samples/spring-bootstrap-profile-sample/src/main/java/org/springframework/bootstrap/sample/simple/ProfileBootstrapApplication.java +++ b/spring-bootstrap-samples/spring-bootstrap-profile-sample/src/main/java/org/springframework/bootstrap/sample/simple/ProfileBootstrapApplication.java @@ -1,3 +1,19 @@ +/* + * Copyright 2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.simple; import org.springframework.beans.factory.annotation.Autowired; diff --git a/spring-bootstrap-samples/spring-bootstrap-profile-sample/src/main/java/org/springframework/bootstrap/sample/simple/service/GoodbyeWorldService.java b/spring-bootstrap-samples/spring-bootstrap-profile-sample/src/main/java/org/springframework/bootstrap/sample/simple/service/GoodbyeWorldService.java index af3b33e433..11189115b8 100644 --- a/spring-bootstrap-samples/spring-bootstrap-profile-sample/src/main/java/org/springframework/bootstrap/sample/simple/service/GoodbyeWorldService.java +++ b/spring-bootstrap-samples/spring-bootstrap-profile-sample/src/main/java/org/springframework/bootstrap/sample/simple/service/GoodbyeWorldService.java @@ -1,3 +1,19 @@ +/* + * Copyright 2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.simple.service; import org.springframework.beans.factory.annotation.Value; @@ -13,7 +29,7 @@ public class GoodbyeWorldService implements MessageService { @Override public String getMessage() { - return "Goodbye " + name; + return "Goodbye " + this.name; } } diff --git a/spring-bootstrap-samples/spring-bootstrap-profile-sample/src/main/java/org/springframework/bootstrap/sample/simple/service/HelloWorldService.java b/spring-bootstrap-samples/spring-bootstrap-profile-sample/src/main/java/org/springframework/bootstrap/sample/simple/service/HelloWorldService.java index c50f4ba629..e9a39feebc 100644 --- a/spring-bootstrap-samples/spring-bootstrap-profile-sample/src/main/java/org/springframework/bootstrap/sample/simple/service/HelloWorldService.java +++ b/spring-bootstrap-samples/spring-bootstrap-profile-sample/src/main/java/org/springframework/bootstrap/sample/simple/service/HelloWorldService.java @@ -1,3 +1,19 @@ +/* + * Copyright 2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.simple.service; import org.springframework.beans.factory.annotation.Value; @@ -13,7 +29,7 @@ public class HelloWorldService implements MessageService { @Override public String getMessage() { - return "Hello " + name; + return "Hello " + this.name; } } diff --git a/spring-bootstrap-samples/spring-bootstrap-profile-sample/src/main/java/org/springframework/bootstrap/sample/simple/service/MessageService.java b/spring-bootstrap-samples/spring-bootstrap-profile-sample/src/main/java/org/springframework/bootstrap/sample/simple/service/MessageService.java index 617ba44dd9..bce760282b 100644 --- a/spring-bootstrap-samples/spring-bootstrap-profile-sample/src/main/java/org/springframework/bootstrap/sample/simple/service/MessageService.java +++ b/spring-bootstrap-samples/spring-bootstrap-profile-sample/src/main/java/org/springframework/bootstrap/sample/simple/service/MessageService.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.sample.simple.service; /** * @author Dave Syer - * */ public interface MessageService { String getMessage(); -} \ No newline at end of file +} diff --git a/spring-bootstrap-samples/spring-bootstrap-simple-sample/src/main/java/org/springframework/bootstrap/sample/simple/SimpleBootstrapApplication.java b/spring-bootstrap-samples/spring-bootstrap-simple-sample/src/main/java/org/springframework/bootstrap/sample/simple/SimpleBootstrapApplication.java index 49df1b0b19..98496190c1 100644 --- a/spring-bootstrap-samples/spring-bootstrap-simple-sample/src/main/java/org/springframework/bootstrap/sample/simple/SimpleBootstrapApplication.java +++ b/spring-bootstrap-samples/spring-bootstrap-simple-sample/src/main/java/org/springframework/bootstrap/sample/simple/SimpleBootstrapApplication.java @@ -1,3 +1,19 @@ +/* + * Copyright 2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.simple; import org.springframework.beans.factory.annotation.Autowired; diff --git a/spring-bootstrap-samples/spring-bootstrap-simple-sample/src/main/java/org/springframework/bootstrap/sample/simple/service/HelloWorldService.java b/spring-bootstrap-samples/spring-bootstrap-simple-sample/src/main/java/org/springframework/bootstrap/sample/simple/service/HelloWorldService.java index b478047582..6f7134c719 100644 --- a/spring-bootstrap-samples/spring-bootstrap-simple-sample/src/main/java/org/springframework/bootstrap/sample/simple/service/HelloWorldService.java +++ b/spring-bootstrap-samples/spring-bootstrap-simple-sample/src/main/java/org/springframework/bootstrap/sample/simple/service/HelloWorldService.java @@ -1,3 +1,19 @@ +/* + * Copyright 2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.simple.service; import org.springframework.beans.factory.annotation.Value; @@ -10,7 +26,7 @@ public class HelloWorldService { private String name; public String getHelloMessage() { - return "Hello " + name; + return "Hello " + this.name; } } diff --git a/spring-bootstrap-samples/spring-bootstrap-tomcat-sample/src/main/java/org/springframework/bootstrap/sample/tomcat/TomcatBootstrapApplication.java b/spring-bootstrap-samples/spring-bootstrap-tomcat-sample/src/main/java/org/springframework/bootstrap/sample/tomcat/TomcatBootstrapApplication.java index bb9b9b3c8b..0cec9ced8b 100644 --- a/spring-bootstrap-samples/spring-bootstrap-tomcat-sample/src/main/java/org/springframework/bootstrap/sample/tomcat/TomcatBootstrapApplication.java +++ b/spring-bootstrap-samples/spring-bootstrap-tomcat-sample/src/main/java/org/springframework/bootstrap/sample/tomcat/TomcatBootstrapApplication.java @@ -1,3 +1,19 @@ +/* + * Copyright 2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.tomcat; import org.springframework.bootstrap.SpringApplication; diff --git a/spring-bootstrap-samples/spring-bootstrap-tomcat-sample/src/main/java/org/springframework/bootstrap/sample/tomcat/service/HelloWorldService.java b/spring-bootstrap-samples/spring-bootstrap-tomcat-sample/src/main/java/org/springframework/bootstrap/sample/tomcat/service/HelloWorldService.java index cfed872112..cfad0ac596 100644 --- a/spring-bootstrap-samples/spring-bootstrap-tomcat-sample/src/main/java/org/springframework/bootstrap/sample/tomcat/service/HelloWorldService.java +++ b/spring-bootstrap-samples/spring-bootstrap-tomcat-sample/src/main/java/org/springframework/bootstrap/sample/tomcat/service/HelloWorldService.java @@ -1,3 +1,19 @@ +/* + * Copyright 2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.tomcat.service; import org.springframework.beans.factory.annotation.Value; @@ -10,7 +26,7 @@ public class HelloWorldService { private String name; public String getHelloMessage() { - return "Hello " + name; + return "Hello " + this.name; } } diff --git a/spring-bootstrap-samples/spring-bootstrap-tomcat-sample/src/main/java/org/springframework/bootstrap/sample/tomcat/web/SampleController.java b/spring-bootstrap-samples/spring-bootstrap-tomcat-sample/src/main/java/org/springframework/bootstrap/sample/tomcat/web/SampleController.java index 7923543705..d6c871fb44 100644 --- a/spring-bootstrap-samples/spring-bootstrap-tomcat-sample/src/main/java/org/springframework/bootstrap/sample/tomcat/web/SampleController.java +++ b/spring-bootstrap-samples/spring-bootstrap-tomcat-sample/src/main/java/org/springframework/bootstrap/sample/tomcat/web/SampleController.java @@ -1,3 +1,19 @@ +/* + * Copyright 2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.tomcat.web; import org.springframework.beans.factory.annotation.Autowired; @@ -15,6 +31,6 @@ public class SampleController { @RequestMapping("/") @ResponseBody public String helloWorld() { - return helloWorldService.getHelloMessage(); + return this.helloWorldService.getHelloMessage(); } } diff --git a/spring-bootstrap-samples/spring-bootstrap-trad-sample/src/main/java/org/springframework/bootstrap/sample/trad/TradBootstrapApplication.java b/spring-bootstrap-samples/spring-bootstrap-trad-sample/src/main/java/org/springframework/bootstrap/sample/trad/TradBootstrapApplication.java index 9e203faa83..6facbc86c3 100644 --- a/spring-bootstrap-samples/spring-bootstrap-trad-sample/src/main/java/org/springframework/bootstrap/sample/trad/TradBootstrapApplication.java +++ b/spring-bootstrap-samples/spring-bootstrap-trad-sample/src/main/java/org/springframework/bootstrap/sample/trad/TradBootstrapApplication.java @@ -1,3 +1,19 @@ +/* + * Copyright 2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.trad; import org.springframework.bootstrap.SpringApplication; diff --git a/spring-bootstrap-samples/spring-bootstrap-trad-sample/src/main/java/org/springframework/bootstrap/sample/trad/config/WebConfig.java b/spring-bootstrap-samples/spring-bootstrap-trad-sample/src/main/java/org/springframework/bootstrap/sample/trad/config/WebConfig.java index cf07120834..96ce8fc837 100644 --- a/spring-bootstrap-samples/spring-bootstrap-trad-sample/src/main/java/org/springframework/bootstrap/sample/trad/config/WebConfig.java +++ b/spring-bootstrap-samples/spring-bootstrap-trad-sample/src/main/java/org/springframework/bootstrap/sample/trad/config/WebConfig.java @@ -1,3 +1,19 @@ +/* + * Copyright 2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.trad.config; import org.springframework.context.annotation.Bean; diff --git a/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/InMemoryMessageRespository.java b/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/InMemoryMessageRespository.java index e6bb48075a..d8f19e686d 100644 --- a/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/InMemoryMessageRespository.java +++ b/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/InMemoryMessageRespository.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.sample.ui; import java.util.concurrent.ConcurrentHashMap; @@ -21,7 +22,6 @@ import java.util.concurrent.atomic.AtomicLong; /** * @author Dave Syer - * */ public class InMemoryMessageRespository implements MessageRepository { diff --git a/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/Message.java b/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/Message.java index b211c6b29c..2a9f363231 100644 --- a/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/Message.java +++ b/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/Message.java @@ -10,6 +10,7 @@ * 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.springframework.bootstrap.sample.ui; import java.util.Calendar; @@ -17,9 +18,7 @@ import java.util.Calendar; import org.hibernate.validator.constraints.NotEmpty; /** - * * @author Rob Winch - * */ public class Message { diff --git a/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/MessageRepository.java b/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/MessageRepository.java index 0e12a4538d..de917bdc4f 100644 --- a/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/MessageRepository.java +++ b/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/MessageRepository.java @@ -10,12 +10,11 @@ * 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.springframework.bootstrap.sample.ui; /** - * * @author Rob Winch - * */ public interface MessageRepository { diff --git a/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/UiBootstrapApplication.java b/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/UiBootstrapApplication.java index 846c20d776..d1b1cb78f4 100644 --- a/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/UiBootstrapApplication.java +++ b/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/UiBootstrapApplication.java @@ -1,3 +1,19 @@ +/* + * Copyright 2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.ui; import org.springframework.bootstrap.SpringApplication; diff --git a/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/mvc/MessageController.java b/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/mvc/MessageController.java index 1494716899..e9f0570703 100644 --- a/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/mvc/MessageController.java +++ b/spring-bootstrap-samples/spring-bootstrap-ui-sample/src/main/java/org/springframework/bootstrap/sample/ui/mvc/MessageController.java @@ -10,6 +10,7 @@ * 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.springframework.bootstrap.sample.ui.mvc; import javax.validation.Valid; @@ -27,56 +28,42 @@ import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.mvc.support.RedirectAttributes; /** - * * @author Rob Winch - * */ @Controller @RequestMapping("/") public class MessageController { - private MessageRepository messageRepository; + private MessageRepository messageRepository; - @Autowired - public MessageController(MessageRepository messageRepository) { - this.messageRepository = messageRepository; - } + @Autowired + public MessageController(MessageRepository messageRepository) { + this.messageRepository = messageRepository; + } - @RequestMapping - public ModelAndView list() { - Iterable messages = messageRepository.findAll(); - return new ModelAndView("messages/list", "messages", messages); - } + @RequestMapping + public ModelAndView list() { + Iterable messages = this.messageRepository.findAll(); + return new ModelAndView("messages/list", "messages", messages); + } - @RequestMapping("{id}") - public ModelAndView view(@PathVariable("id") - Message message) { - return new ModelAndView("messages/view", "message", message); - } + @RequestMapping("{id}") + public ModelAndView view(@PathVariable("id") Message message) { + return new ModelAndView("messages/view", "message", message); + } - @RequestMapping(params = "form", method = RequestMethod.GET) - public String createForm(@ModelAttribute - Message message) { - return "messages/form"; - } + @RequestMapping(params = "form", method = RequestMethod.GET) + public String createForm(@ModelAttribute Message message) { + return "messages/form"; + } - @RequestMapping(method = RequestMethod.POST) - public ModelAndView create(@Valid - Message message, BindingResult result, RedirectAttributes redirect) { - if (result.hasErrors()) { - return new ModelAndView("messages/form", "formErrors", - result.getAllErrors()); - } - message = messageRepository.save(message); - redirect.addFlashAttribute("globalMessage", - "Successfully created a new message"); - return new ModelAndView("redirect:/{message.id}", - "message.id", message.getId()); - } + @RequestMapping(method = RequestMethod.POST) + public ModelAndView create(@Valid Message message, BindingResult result, + RedirectAttributes redirect) { + if (result.hasErrors()) { + return new ModelAndView("messages/form", "formErrors", result.getAllErrors()); + } + message = this.messageRepository.save(message); + redirect.addFlashAttribute("globalMessage", "Successfully created a new message"); + return new ModelAndView("redirect:/{message.id}", "message.id", message.getId()); + } } - - - - - - - diff --git a/spring-bootstrap-samples/spring-bootstrap-xml-sample/src/main/java/org/springframework/bootstrap/sample/xml/XmlBootstrapApplication.java b/spring-bootstrap-samples/spring-bootstrap-xml-sample/src/main/java/org/springframework/bootstrap/sample/xml/XmlBootstrapApplication.java index 6fdf80402e..6349f11952 100644 --- a/spring-bootstrap-samples/spring-bootstrap-xml-sample/src/main/java/org/springframework/bootstrap/sample/xml/XmlBootstrapApplication.java +++ b/spring-bootstrap-samples/spring-bootstrap-xml-sample/src/main/java/org/springframework/bootstrap/sample/xml/XmlBootstrapApplication.java @@ -1,3 +1,19 @@ +/* + * Copyright 2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.xml; import org.springframework.beans.factory.annotation.Autowired; diff --git a/spring-bootstrap-samples/spring-bootstrap-xml-sample/src/main/java/org/springframework/bootstrap/sample/xml/service/HelloWorldService.java b/spring-bootstrap-samples/spring-bootstrap-xml-sample/src/main/java/org/springframework/bootstrap/sample/xml/service/HelloWorldService.java index 31fea7d178..9416a4032a 100644 --- a/spring-bootstrap-samples/spring-bootstrap-xml-sample/src/main/java/org/springframework/bootstrap/sample/xml/service/HelloWorldService.java +++ b/spring-bootstrap-samples/spring-bootstrap-xml-sample/src/main/java/org/springframework/bootstrap/sample/xml/service/HelloWorldService.java @@ -1,3 +1,19 @@ +/* + * Copyright 2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.sample.xml.service; import org.springframework.beans.factory.annotation.Value; @@ -10,7 +26,7 @@ public class HelloWorldService { private String name; public String getHelloMessage() { - return "Hello " + name; + return "Hello " + this.name; } } diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/Banner.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/Banner.java index 5cc2ffc0c6..e62d1fd680 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/Banner.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/Banner.java @@ -38,12 +38,12 @@ abstract class Banner { * @param printStream the output print stream */ public static void write(PrintStream printStream) { - System.out.println(); + printStream.println(); for (String line : BANNER) { printStream.println(line); } - System.out.println(); - System.out.println(); + printStream.println(); + printStream.println(); } } diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/ExitCodeGenerator.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/ExitCodeGenerator.java index cf142a015b..565cab2774 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/ExitCodeGenerator.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/ExitCodeGenerator.java @@ -13,14 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap; /** - * @author Dave Syer + * Interface used to generate an 'exit code' from a running command line + * {@link SpringApplication}. * + * @author Dave Syer + * @see SpringApplication#exit(org.springframework.context.ApplicationContext, + * ExitCodeGenerator...) */ public interface ExitCodeGenerator { + /** + * Returns the exit code that should be returned from the application. + * @return the exit code. + */ int getExitCode(); } diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/BatchAutoConfiguration.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/BatchAutoConfiguration.java index c2e951f266..f7e5860c44 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/BatchAutoConfiguration.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/BatchAutoConfiguration.java @@ -42,15 +42,15 @@ public class BatchAutoConfiguration { } @Bean - @ConditionalOnMissingBean({ CommandLineRunner.class }) - @ConditionalOnBean({ JobLauncher.class }) + @ConditionalOnMissingBean(CommandLineRunner.class) + @ConditionalOnBean(JobLauncher.class) public JobLauncherCommandLineRunner jobLauncherCommandLineRunner() { return new JobLauncherCommandLineRunner(); } @Bean - @ConditionalOnMissingBean({ ExitCodeGenerator.class }) - @ConditionalOnBean({ JobLauncher.class }) + @ConditionalOnMissingBean(ExitCodeGenerator.class) + @ConditionalOnBean(JobLauncher.class) public ExitCodeGenerator jobExecutionExitCodeGenerator() { return new JobExecutionExitCodeGenerator(); } diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/BatchDatabaseInitializer.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/BatchDatabaseInitializer.java index 58cf3cd2f8..f79a278016 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/BatchDatabaseInitializer.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/BatchDatabaseInitializer.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.batch; import javax.annotation.PostConstruct; @@ -30,7 +31,6 @@ import org.springframework.stereotype.Component; * Initialize the Spring Batch schema (ignoring errors, so should be idempotent). * * @author Dave Syer - * */ @Component public class BatchDatabaseInitializer { @@ -57,4 +57,4 @@ public class BatchDatabaseInitializer { populator.setContinueOnError(true); DatabasePopulatorUtils.execute(populator, this.dataSource); } -} \ No newline at end of file +} diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/JobExecutionEvent.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/JobExecutionEvent.java index 5518c15c2c..332746e8d1 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/JobExecutionEvent.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/JobExecutionEvent.java @@ -13,14 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.batch; import org.springframework.batch.core.JobExecution; import org.springframework.context.ApplicationEvent; /** - * @author Dave Syer + * Spring {@link ApplicationEvent} encapsulating a {@link JobExecution}. * + * @author Dave Syer */ public class JobExecutionEvent extends ApplicationEvent { diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/JobExecutionExitCodeGenerator.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/JobExecutionExitCodeGenerator.java index 52312093eb..4ae7b1b338 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/JobExecutionExitCodeGenerator.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/JobExecutionExitCodeGenerator.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.batch; import java.util.ArrayList; @@ -23,8 +24,9 @@ import org.springframework.bootstrap.ExitCodeGenerator; import org.springframework.context.ApplicationListener; /** - * @author Dave Syer + * {@link ExitCodeGenerator} for {@link JobExecutionEvent}s. * + * @author Dave Syer */ public class JobExecutionExitCodeGenerator implements ApplicationListener, ExitCodeGenerator { diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/JobLauncherCommandLineRunner.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/JobLauncherCommandLineRunner.java index cd09e2300d..18f2a30d6b 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/JobLauncherCommandLineRunner.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/batch/JobLauncherCommandLineRunner.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.batch; import java.util.Arrays; @@ -35,6 +36,11 @@ import org.springframework.context.ApplicationEventPublisherAware; import org.springframework.stereotype.Component; import org.springframework.util.StringUtils; +/** + * {@link CommandLineRunner} to {@link JobLauncher launch} Spring Batch jobs. + * + * @author Dave Syer + */ @Component public class JobLauncherCommandLineRunner implements CommandLineRunner, ApplicationEventPublisherAware { @@ -72,4 +78,4 @@ public class JobLauncherCommandLineRunner implements CommandLineRunner, } } } -} \ No newline at end of file +} diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/AbstractDataSourceConfiguration.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/AbstractDataSourceConfiguration.java index 249c85f19f..734fb36993 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/AbstractDataSourceConfiguration.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/AbstractDataSourceConfiguration.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.jdbc; import org.springframework.beans.factory.BeanCreationException; @@ -24,7 +25,6 @@ import org.springframework.util.StringUtils; * Base class for configuration of a database pool. * * @author Dave Syer - * */ public class AbstractDataSourceConfiguration { diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/BasicDataSourceConfiguration.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/BasicDataSourceConfiguration.java index bd38bbcc9d..3363fcb4c2 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/BasicDataSourceConfiguration.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/BasicDataSourceConfiguration.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.jdbc; import java.sql.SQLException; @@ -32,17 +33,18 @@ import org.springframework.dao.DataAccessResourceFailureException; * recommended in high volume environments (the Tomcat DataSource is more reliable). * * @author Dave Syer - * */ @Configuration public class BasicDataSourceConfiguration extends AbstractDataSourceConfiguration { private static Log logger = LogFactory.getLog(BasicDataSourceConfiguration.class); + private BasicDataSource pool; @Bean public DataSource dataSource() { - logger.info("Hint: using Commons DBCP BasicDataSource. It's going to work, but the Tomcat DataSource is more reliable."); + logger.info("Hint: using Commons DBCP BasicDataSource. It's going to work, " + + "but the Tomcat DataSource is more reliable."); this.pool = new BasicDataSource(); this.pool.setDriverClassName(getDriverClassName()); this.pool.setUrl(getUrl()); diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/DataSourceAutoConfiguration.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/DataSourceAutoConfiguration.java index 75404680bd..aaba3b9348 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/DataSourceAutoConfiguration.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/DataSourceAutoConfiguration.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.jdbc; import java.util.ArrayList; @@ -30,6 +31,7 @@ import org.springframework.beans.factory.annotation.Value; import org.springframework.bootstrap.context.annotation.ConditionLogUtils; import org.springframework.bootstrap.context.annotation.ConditionalOnClass; import org.springframework.bootstrap.context.annotation.ConditionalOnMissingBean; +import org.springframework.bootstrap.context.annotation.EnableAutoConfiguration; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Condition; @@ -50,14 +52,17 @@ import org.springframework.util.ClassUtils; import org.springframework.util.StringUtils; /** - * @author Dave Syer + * {@link EnableAutoConfiguration Auto-configuration} for {@link DataSource}. * + * @author Dave Syer */ @Configuration @ConditionalOnClass(EmbeddedDatabaseType.class /* Spring JDBC */) // @ConditionalOnMissingBean(DataSource.class) public class DataSourceAutoConfiguration { + // FIXME see above + private static Log logger = LogFactory.getLog(DataSourceAutoConfiguration.class); @Autowired(required = false) diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/DataSourceTransactionManagerAutoConfiguration.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/DataSourceTransactionManagerAutoConfiguration.java index 271daff259..5df7d0bba3 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/DataSourceTransactionManagerAutoConfiguration.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/DataSourceTransactionManagerAutoConfiguration.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.jdbc; import javax.sql.DataSource; @@ -21,6 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.bootstrap.context.annotation.ConditionalOnBean; import org.springframework.bootstrap.context.annotation.ConditionalOnClass; import org.springframework.bootstrap.context.annotation.ConditionalOnMissingBean; +import org.springframework.bootstrap.context.annotation.EnableAutoConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.Ordered; @@ -29,8 +31,10 @@ import org.springframework.jdbc.datasource.DataSourceTransactionManager; import org.springframework.transaction.PlatformTransactionManager; /** - * @author Dave Syer + * {@link EnableAutoConfiguration Auto-configuration} for + * {@link DataSourceTransactionManager}. * + * @author Dave Syer */ @Configuration @ConditionalOnClass({ JdbcTemplate.class, PlatformTransactionManager.class }) diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/TomcatDataSourceConfiguration.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/TomcatDataSourceConfiguration.java index 3b6cfd09bf..79d9139f50 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/TomcatDataSourceConfiguration.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/jdbc/TomcatDataSourceConfiguration.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.jdbc; import javax.annotation.PreDestroy; @@ -26,7 +27,6 @@ import org.springframework.context.annotation.Configuration; * and tends not to deadlock in high volume environments. * * @author Dave Syer - * */ @Configuration public class TomcatDataSourceConfiguration extends AbstractDataSourceConfiguration { diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/orm/jpa/JpaComponentScanDetector.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/orm/jpa/JpaComponentScanDetector.java index 27f4afb34f..fc4210b677 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/orm/jpa/JpaComponentScanDetector.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/orm/jpa/JpaComponentScanDetector.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.orm.jpa; import java.io.IOException; @@ -46,12 +47,10 @@ import org.springframework.util.StringUtils; /** * Helper to detect a component scan declared in the enclosing context (normally on a - * @Configuration class). Once the component scan is detected, the base - * packages are stored for retrieval later by the {@link JpaRepositoriesAutoConfiguration} - * . + * {@code @Configuration} class). Once the component scan is detected, the base packages + * are stored for retrieval later by the {@link JpaRepositoriesAutoConfiguration} . * * @author Dave Syer - * */ class JpaComponentScanDetector implements ImportBeanDefinitionRegistrar, BeanFactoryAware { diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/web/EmbeddedContainerConfiguration.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/web/EmbeddedContainerConfiguration.java index 3961558fbc..62f39cf036 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/web/EmbeddedContainerConfiguration.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/web/EmbeddedContainerConfiguration.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.web; import javax.servlet.Servlet; @@ -36,7 +37,6 @@ import org.springframework.core.type.AnnotationMetadata; * * @author Phillip Webb * @author Dave Syer - * */ public class EmbeddedContainerConfiguration implements ImportSelector { diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/web/ServerPropertiesConfiguration.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/web/ServerPropertiesConfiguration.java index 4aa55cfc73..839d664e4b 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/web/ServerPropertiesConfiguration.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/autoconfigure/web/ServerPropertiesConfiguration.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.web; import org.apache.catalina.valves.AccessLogValve; @@ -31,8 +32,11 @@ import org.springframework.context.annotation.Configuration; import org.springframework.util.StringUtils; /** - * @author Dave Syer + * {@link EmbeddedServletContainerCustomizer} that configures the + * {@link ConfigurableEmbeddedServletContainerFactory} from a {@link ServerProperties} + * bean. * + * @author Dave Syer */ @Configuration @EnableConfigurationProperties diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/bind/InetAddressEditor.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/bind/InetAddressEditor.java index 9ddde83fc5..1415574597 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/bind/InetAddressEditor.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/bind/InetAddressEditor.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.bind; import java.beans.PropertyEditor; @@ -21,8 +22,9 @@ import java.net.InetAddress; import java.net.UnknownHostException; /** - * @author Dave Syer + * {@link PropertyEditor} for {@link InetAddress} objects. * + * @author Dave Syer */ public class InetAddressEditor extends PropertyEditorSupport implements PropertyEditor { diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/config/YamlMapFactoryBean.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/config/YamlMapFactoryBean.java index b1a212a3d4..4d7fee6a09 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/config/YamlMapFactoryBean.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/config/YamlMapFactoryBean.java @@ -37,7 +37,7 @@ import org.springframework.beans.factory.FactoryBean; * one: two * three: four * - *
    + * 
    * * plus (later in the list) * @@ -47,7 +47,7 @@ import org.springframework.beans.factory.FactoryBean; * one: 2 * five: six * - *
    + * 
    * * results in an effecive input of * @@ -58,13 +58,12 @@ import org.springframework.beans.factory.FactoryBean; * three: four * five: six * - *
    + * 
    * - * Note that the value of "foo" in the first document is not simply replaced with the value in the second, but its nested values are merged. + * Note that the value of "foo" in the first document is not simply replaced with the + * value in the second, but its nested values are merged. * * @author Dave Syer - * @since 3.2 - * */ public class YamlMapFactoryBean extends YamlProcessor implements FactoryBean> { diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/config/YamlProcessor.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/config/YamlProcessor.java index 8bd347e444..c33d9cb95e 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/config/YamlProcessor.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/config/YamlProcessor.java @@ -35,7 +35,6 @@ import org.yaml.snakeyaml.Yaml; * Base class for Yaml factories. * * @author Dave Syer - * @since 3.2 */ public class YamlProcessor { diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/config/YamlPropertiesFactoryBean.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/config/YamlPropertiesFactoryBean.java index a967849abe..a0abb26e47 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/config/YamlPropertiesFactoryBean.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/config/YamlPropertiesFactoryBean.java @@ -65,8 +65,6 @@ import org.springframework.beans.factory.FactoryBean; * * * @author Dave Syer - * @since 3.2 - * */ public class YamlPropertiesFactoryBean extends YamlProcessor implements FactoryBean { diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/AbstractOnBeanCondition.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/AbstractOnBeanCondition.java index 449f2c9ca3..9c3731f45e 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/AbstractOnBeanCondition.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/AbstractOnBeanCondition.java @@ -38,7 +38,9 @@ import org.springframework.util.MultiValueMap; abstract class AbstractOnBeanCondition implements Condition { protected Log logger = LogFactory.getLog(getClass()); + private List beanClasses; + private List beanNames; protected abstract Class annotationClass(); @@ -90,32 +92,26 @@ abstract class AbstractOnBeanCondition implements Condition { boolean result = evaluate(beanClassesFound, beanNamesFound); if (this.logger.isDebugEnabled()) { - if (!this.beanClasses.isEmpty()) { - this.logger.debug(checking + "Looking for beans with class: " - + this.beanClasses); - if (beanClassesFound.isEmpty()) { - this.logger.debug(checking + "Found no beans"); - } else { - this.logger.debug(checking + "Found beans with classes: " - + beanClassesFound); - } - } - - if (!this.beanNames.isEmpty()) { - this.logger.debug(checking + "Looking for beans with names: " - + this.beanNames); - if (beanNamesFound.isEmpty()) { - this.logger.debug(checking + "Found no beans"); - } else { - this.logger.debug(checking + "Found beans with names: " - + beanNamesFound); - } - } + logFoundResults(checking, "class", this.beanClasses, beanClassesFound); + logFoundResults(checking, "name", this.beanNames, beanClassesFound); this.logger.debug(checking + "Match result is: " + result); } return result; } + private void logFoundResults(String prefix, String type, List candidates, + List found) { + if (!candidates.isEmpty()) { + this.logger.debug(prefix + "Looking for beans with " + type + ": " + + candidates); + if (found.isEmpty()) { + this.logger.debug(prefix + "Found no beans"); + } else { + this.logger.debug(prefix + "Found beans with " + type + ": " + found); + } + } + } + protected boolean evaluate(List beanClassesFound, List beanNamesFound) { return !beanClassesFound.isEmpty() || !beanNamesFound.isEmpty(); } diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/ConditionLogUtils.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/ConditionLogUtils.java index 5b0206d6b1..0610901c13 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/ConditionLogUtils.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/ConditionLogUtils.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.context.annotation; import org.apache.commons.logging.Log; @@ -21,8 +22,9 @@ import org.springframework.core.type.ClassMetadata; import org.springframework.core.type.MethodMetadata; /** - * @author Dave Syer + * General utilities for constructing {@code @Conditional} log messages. * + * @author Dave Syer */ public class ConditionLogUtils { diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/ConditionalOnExpression.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/ConditionalOnExpression.java index 9b3454a586..72fb70ce5e 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/ConditionalOnExpression.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/ConditionalOnExpression.java @@ -23,15 +23,18 @@ import java.lang.annotation.Target; import org.springframework.context.annotation.Conditional; /** - * Configuration annotation for a conditional element that depends on teh value of a SpEL + * Configuration annotation for a conditional element that depends on the value of a SpEL * expression. * * @author Dave Syer - * */ @Conditional(OnExpressionCondition.class) @Retention(RetentionPolicy.RUNTIME) @Target({ ElementType.TYPE, ElementType.METHOD }) public @interface ConditionalOnExpression { + + /** + * The SpEL expression. + */ String value() default "true"; -} \ No newline at end of file +} diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/ConfigurationProperties.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/ConfigurationProperties.java index 5cc0ce6196..cb407ee839 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/ConfigurationProperties.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/ConfigurationProperties.java @@ -22,7 +22,6 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; - /** * Annotation for externalized configuration. Add this to a class definition if you want * to bind and validate some external Properties (e.g. from a .properties file). diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/EnableConfigurationProperties.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/EnableConfigurationProperties.java index f1b7bde9de..ac1ecd393b 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/EnableConfigurationProperties.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/EnableConfigurationProperties.java @@ -35,4 +35,5 @@ public @interface EnableConfigurationProperties { Class[] value() default {}; + // FIXME Javadoc } diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/OnExpressionCondition.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/OnExpressionCondition.java index d7336cd5ba..d883e48189 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/OnExpressionCondition.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/OnExpressionCondition.java @@ -30,7 +30,7 @@ import org.springframework.core.type.ClassMetadata; * A Condition that evaluates a SpEL expression. * * @author Dave Syer - * + * @see ConditionalOnExpression */ public class OnExpressionCondition implements Condition { @@ -72,4 +72,4 @@ public class OnExpressionCondition implements Condition { return result; } -} \ No newline at end of file +} diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/OnWebApplicationCondition.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/OnWebApplicationCondition.java index 9ebaef7e73..420e565077 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/OnWebApplicationCondition.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/OnWebApplicationCondition.java @@ -57,4 +57,5 @@ class OnWebApplicationCondition implements Condition { return result; } + // FIXME merge with OnNotWeb... } diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/PropertySourcesBindingPostProcessor.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/PropertySourcesBindingPostProcessor.java index 7cc681c0c0..8e138d2c9a 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/PropertySourcesBindingPostProcessor.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/PropertySourcesBindingPostProcessor.java @@ -27,6 +27,9 @@ import org.springframework.core.env.PropertySources; import org.springframework.validation.Validator; /** + * {@link BeanPostProcessor} to bind {@link PropertySources} to beans annotated with + * {@link ConfigurationProperties}. + * * @author Dave Syer */ public class PropertySourcesBindingPostProcessor implements BeanPostProcessor { diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/AbstractEmbeddedServletContainerFactory.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/AbstractEmbeddedServletContainerFactory.java index cd0477be01..37e68e02e4 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/AbstractEmbeddedServletContainerFactory.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/AbstractEmbeddedServletContainerFactory.java @@ -33,7 +33,6 @@ import org.springframework.util.Assert; * * @author Phillip Webb * @author Dave Syer - * @since 4.0 */ public abstract class AbstractEmbeddedServletContainerFactory implements ConfigurableEmbeddedServletContainerFactory { diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/AnnotationConfigEmbeddedWebApplicationContext.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/AnnotationConfigEmbeddedWebApplicationContext.java index 62a346a110..0e138efcda 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/AnnotationConfigEmbeddedWebApplicationContext.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/AnnotationConfigEmbeddedWebApplicationContext.java @@ -31,7 +31,7 @@ import org.springframework.web.context.support.AnnotationConfigWebApplicationCon /** * {@link EmbeddedWebApplicationContext} that accepts annotated classes as input - in * particular {@link org.springframework.context.annotation.Configuration - * @Configuration} -annotated classes, but also plain + * @Configuration}-annotated classes, but also plain * {@link org.springframework.stereotype.Component @Component} classes and * JSR-330 compliant classes using {@code javax.inject} annotations. Allows for * registering classes one by one (specifying class names as config location) as well as @@ -43,7 +43,6 @@ import org.springframework.web.context.support.AnnotationConfigWebApplicationCon * to deliberately override certain bean definitions via an extra Configuration class. * * @author Phillip Webb - * @since 4.0 * @see #register(Class...) * @see #scan(String...) * @see EmbeddedWebApplicationContext diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/EmbeddedServletContainer.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/EmbeddedServletContainer.java index 633ad8df43..8688703bb3 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/EmbeddedServletContainer.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/EmbeddedServletContainer.java @@ -25,11 +25,22 @@ package org.springframework.bootstrap.context.embedded; * {@link EmbeddedServletContainerFactory}. * * @author Phillip Webb - * @since 4.0 + * @author Dave Syer * @see EmbeddedServletContainerFactory */ public interface EmbeddedServletContainer { + /** + * An empty {@link EmbeddedServletContainer} that does nothing. + */ + public static final EmbeddedServletContainer NONE = new EmbeddedServletContainer() { + + @Override + public void stop() throws EmbeddedServletContainerException { + // Do nothing + } + }; + /** * Stops the embedded servlet container. Calling this method on an already stopped * container has no effect. diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/EmbeddedServletContainerCustomizer.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/EmbeddedServletContainerCustomizer.java index 2e6b7e76e0..2d3c8fe0c6 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/EmbeddedServletContainerCustomizer.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/EmbeddedServletContainerCustomizer.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.context.embedded; /** @@ -24,10 +25,13 @@ package org.springframework.bootstrap.context.embedded; * than injecting them with @Autowired. * * @author Dave Syer - * */ public interface EmbeddedServletContainerCustomizer { + /** + * Customize the specified {@link ConfigurableEmbeddedServletContainerFactory}. + * @param factory the factory to customize + */ void customize(ConfigurableEmbeddedServletContainerFactory factory); } diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/EmbeddedServletContainerFactory.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/EmbeddedServletContainerFactory.java index 88ae40be3d..508983f713 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/EmbeddedServletContainerFactory.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/EmbeddedServletContainerFactory.java @@ -25,7 +25,6 @@ import org.springframework.bootstrap.context.embedded.tomcat.TomcatEmbeddedServl * {@link AbstractEmbeddedServletContainerFactory} when possible. * * @author Phillip Webb - * @since 4.0 * @see EmbeddedServletContainer * @see AbstractEmbeddedServletContainerFactory * @see JettyEmbeddedServletContainerFactory diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/EmbeddedWebApplicationContext.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/EmbeddedWebApplicationContext.java index dda518b459..742c715081 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/EmbeddedWebApplicationContext.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/EmbeddedWebApplicationContext.java @@ -81,7 +81,6 @@ import org.springframework.web.context.support.WebApplicationContextUtils; * {@link XmlEmbeddedWebApplicationContext} variants. * * @author Phillip Webb - * @since 4.0 * @see AnnotationConfigEmbeddedWebApplicationContext * @see XmlEmbeddedWebApplicationContext * @see EmbeddedServletContainerFactory diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/EmptyEmbeddedServletContainer.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/EmptyEmbeddedServletContainer.java deleted file mode 100644 index d9c7627513..0000000000 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/EmptyEmbeddedServletContainer.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2012-2013 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.springframework.bootstrap.context.embedded; - -/** - * @author Dave Syer - * - */ -public class EmptyEmbeddedServletContainer implements EmbeddedServletContainer { - - @Override - public void stop() throws EmbeddedServletContainerException { - // do nothing - } - -} diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/ErrorPage.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/ErrorPage.java index 1882bf8866..b2fce25bb2 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/ErrorPage.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/ErrorPage.java @@ -24,7 +24,6 @@ import org.springframework.util.ObjectUtils; * the {@literal <error-page>} element traditionally found in web.xml. * * @author Dave Syer - * @since 4.0 */ public class ErrorPage { diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/FilterRegistrationBean.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/FilterRegistrationBean.java index a772952919..52fdd38024 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/FilterRegistrationBean.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/FilterRegistrationBean.java @@ -44,7 +44,6 @@ import org.springframework.util.Assert; * will be associated to '/*'. The filter name will be deduced if not specified. * * @author Phillip Webb - * @since 4.0 * @see ServletContextInitializer * @see ServletContext#addFilter(String, Filter) */ diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/RegistrationBean.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/RegistrationBean.java index d4462f9834..c3c732a8f4 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/RegistrationBean.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/RegistrationBean.java @@ -29,7 +29,6 @@ import org.springframework.util.Assert; * {@link FilterRegistrationBean filter} registration beans. * * @author Phillip Webb - * @since 4.0 * @see ServletRegistrationBean * @see FilterRegistrationBean */ diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/ServletRegistrationBean.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/ServletRegistrationBean.java index 9b9403395b..3cf5a48077 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/ServletRegistrationBean.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/ServletRegistrationBean.java @@ -41,7 +41,6 @@ import org.springframework.util.Assert; * omitted when mapping to '/*'. The servlet name will be deduced if not specified. * * @author Phillip Webb - * @since 4.0 * @see ServletContextInitializer * @see ServletContext#addServlet(String, Servlet) */ diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/jetty/JettyEmbeddedServletContainer.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/jetty/JettyEmbeddedServletContainer.java index 2ab7e2c2c7..b170d48805 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/jetty/JettyEmbeddedServletContainer.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/jetty/JettyEmbeddedServletContainer.java @@ -27,7 +27,6 @@ import org.springframework.util.Assert; * {@link JettyEmbeddedServletContainerFactory} and not directly. * * @author Phillip Webb - * @since 4.0 * @see JettyEmbeddedServletContainerFactory */ public class JettyEmbeddedServletContainer implements EmbeddedServletContainer { diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/jetty/JettyEmbeddedServletContainerFactory.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/jetty/JettyEmbeddedServletContainerFactory.java index cf39fb774c..f87e214332 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/jetty/JettyEmbeddedServletContainerFactory.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/jetty/JettyEmbeddedServletContainerFactory.java @@ -35,7 +35,6 @@ import org.eclipse.jetty.webapp.WebAppContext; import org.springframework.bootstrap.context.embedded.AbstractEmbeddedServletContainerFactory; import org.springframework.bootstrap.context.embedded.EmbeddedServletContainer; import org.springframework.bootstrap.context.embedded.EmbeddedServletContainerFactory; -import org.springframework.bootstrap.context.embedded.EmptyEmbeddedServletContainer; import org.springframework.bootstrap.context.embedded.ErrorPage; import org.springframework.bootstrap.context.embedded.ServletContextInitializer; import org.springframework.context.ResourceLoaderAware; @@ -50,12 +49,11 @@ import org.springframework.util.StringUtils; * {@link ServletContextInitializer}s or Jetty {@link Configuration}s. * *

    - * Unless explicitly configured otherwise this factory will created containers that listen - * for HTTP requests on port 8080. + * Unless explicitly configured otherwise this factory will created containers that + * listens for HTTP requests on port 8080. * * @author Phillip Webb * @author Dave Syer - * @since 4.0 * @see #setPort(int) * @see #setConfigurations(Collection) * @see JettyEmbeddedServletContainer @@ -99,7 +97,7 @@ public class JettyEmbeddedServletContainerFactory extends public EmbeddedServletContainer getEmbdeddedServletContainer( ServletContextInitializer... initializers) { if (getPort() == 0) { - return new EmptyEmbeddedServletContainer(); + return EmbeddedServletContainer.NONE; } Server server = new Server(new InetSocketAddress(getAddress(), getPort())); diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/jetty/ServletContextInitializerConfiguration.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/jetty/ServletContextInitializerConfiguration.java index 6e5136c70a..2f5c1218e7 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/jetty/ServletContextInitializerConfiguration.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/jetty/ServletContextInitializerConfiguration.java @@ -30,7 +30,6 @@ import org.springframework.util.Assert; * Jetty {@link Configuration} that calls {@link ServletContextInitializer}s. * * @author Phillip Webb - * @since 4.0 */ public class ServletContextInitializerConfiguration extends AbstractConfiguration { @@ -61,8 +60,9 @@ public class ServletContextInitializerConfiguration extends AbstractConfiguratio @Override protected void doStart() throws Exception { - ServletContext servletContext = contextHandler.getServletContext(); - for (ServletContextInitializer initializer : initializers) { + ServletContext servletContext = ServletContextInitializerConfiguration.this.contextHandler + .getServletContext(); + for (ServletContextInitializer initializer : ServletContextInitializerConfiguration.this.initializers) { initializer.onStartup(servletContext); } } diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/tomcat/ServletContextInitializerLifecycleListener.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/tomcat/ServletContextInitializerLifecycleListener.java index 6275cacee9..dc0d42a56a 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/tomcat/ServletContextInitializerLifecycleListener.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/tomcat/ServletContextInitializerLifecycleListener.java @@ -29,7 +29,6 @@ import org.springframework.util.Assert; * Tomcat {@link LifecycleListener} that calls {@link ServletContextInitializer}s. * * @author Phillip Webb - * @since 4.0 */ public class ServletContextInitializerLifecycleListener implements LifecycleListener { diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/tomcat/TomcatEmbeddedServletContainer.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/tomcat/TomcatEmbeddedServletContainer.java index 0df0eb3ebd..6d59057fce 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/tomcat/TomcatEmbeddedServletContainer.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/tomcat/TomcatEmbeddedServletContainer.java @@ -28,7 +28,6 @@ import org.springframework.util.Assert; * {@link TomcatEmbeddedServletContainerFactory} and not directly. * * @author Phillip Webb - * @since 4.0 * @see TomcatEmbeddedServletContainerFactory */ public class TomcatEmbeddedServletContainer implements EmbeddedServletContainer { @@ -53,7 +52,7 @@ public class TomcatEmbeddedServletContainer implements EmbeddedServletContainer Thread awaitThread = new Thread() { @Override public void run() { - tomcat.getServer().await(); + TomcatEmbeddedServletContainer.this.tomcat.getServer().await(); }; }; awaitThread.setDaemon(false); diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.java index df8de01fb7..398ed66d5a 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.java @@ -41,7 +41,6 @@ import org.springframework.bootstrap.context.embedded.AbstractEmbeddedServletCon import org.springframework.bootstrap.context.embedded.EmbeddedServletContainer; import org.springframework.bootstrap.context.embedded.EmbeddedServletContainerException; import org.springframework.bootstrap.context.embedded.EmbeddedServletContainerFactory; -import org.springframework.bootstrap.context.embedded.EmptyEmbeddedServletContainer; import org.springframework.bootstrap.context.embedded.ErrorPage; import org.springframework.bootstrap.context.embedded.ServletContextInitializer; import org.springframework.context.ResourceLoaderAware; @@ -55,12 +54,11 @@ import org.springframework.util.ClassUtils; * {@link ServletContextInitializer}s or Tomcat {@link LifecycleListener}s. * *

    - * Unless explicitly configured otherwise this factory will created containers that listen - * for HTTP requests on port 8080. + * Unless explicitly configured otherwise this factory will created containers that + * listens for HTTP requests on port 8080. * * @author Phillip Webb * @author Dave Syer - * @since 4.0 * @see #setPort(int) * @see #setContextLifecycleListeners(Collection) * @see TomcatEmbeddedServletContainer @@ -110,7 +108,7 @@ public class TomcatEmbeddedServletContainerFactory extends public EmbeddedServletContainer getEmbdeddedServletContainer( ServletContextInitializer... initializers) { if (getPort() == 0) { - return new EmptyEmbeddedServletContainer(); + return EmbeddedServletContainer.NONE; } File baseDir = (this.baseDirectory != null ? this.baseDirectory : createTempDir("tomcat")); @@ -345,7 +343,7 @@ public class TomcatEmbeddedServletContainerFactory extends ServletContextInitializer... initializers) { if (getPort() == 0) { - return new EmptyEmbeddedServletContainer(); + return EmbeddedServletContainer.NONE; } StandardService service = new StandardService(); service.setName(name); diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/initializer/ConfigFileApplicationContextInitializer.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/initializer/ConfigFileApplicationContextInitializer.java index bd1754fac0..e15238ed5c 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/initializer/ConfigFileApplicationContextInitializer.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/initializer/ConfigFileApplicationContextInitializer.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.context.initializer; import java.io.IOException; diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/initializer/EnvironmentDelegateApplicationContextInitializer.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/initializer/EnvironmentDelegateApplicationContextInitializer.java index eb4c6ca6a8..572dec3a37 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/initializer/EnvironmentDelegateApplicationContextInitializer.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/initializer/EnvironmentDelegateApplicationContextInitializer.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.context.initializer; import java.util.ArrayList; diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/logging/JavaLoggerConfigurer.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/logging/JavaLoggerConfigurer.java index a5c726b5ae..243811f11f 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/logging/JavaLoggerConfigurer.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/logging/JavaLoggerConfigurer.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.logging; import java.io.FileNotFoundException; diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/logging/LogbackConfigurer.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/logging/LogbackConfigurer.java index fe2f6735f4..ce034d68b0 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/logging/LogbackConfigurer.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/logging/LogbackConfigurer.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.logging; import java.io.FileNotFoundException; diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/main/Spring.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/main/Spring.java index bdb7b53589..5a1f2bb5a0 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/main/Spring.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/main/Spring.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.main; import java.util.ArrayList; @@ -34,7 +35,6 @@ import org.springframework.util.ClassUtils; * the {@link SpringApplication} run methods are often more convenient). * * @author Dave Syer - * */ @Configuration @EnableAutoConfiguration diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/AdhocTestSuite.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/AdhocTestSuite.java index d726709ae7..76562ed241 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/AdhocTestSuite.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/AdhocTestSuite.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap; import org.junit.Ignore; @@ -24,8 +25,8 @@ import org.springframework.bootstrap.main.SimpleMainTests; /** * A test suite for probing weird ordering problems in the tests. - * @author Dave Syer * + * @author Dave Syer */ @RunWith(Suite.class) @SuiteClasses({ SimpleMainTests.class, JettyEmbeddedServletContainerFactoryTests.class }) diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/BeanDefinitionLoaderTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/BeanDefinitionLoaderTests.java index cb99f291ba..9e56f5a71c 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/BeanDefinitionLoaderTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/BeanDefinitionLoaderTests.java @@ -104,7 +104,6 @@ public class BeanDefinitionLoaderTests { int loaded = loader.load(); assertThat(loaded, equalTo(1)); assertTrue(this.registry.containsBean("myComponent")); - } } diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/TestUtils.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/TestUtils.java index 3cb7d00277..c217ca4921 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/TestUtils.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/TestUtils.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap; import java.util.HashMap; @@ -23,7 +24,6 @@ import org.springframework.core.env.MapPropertySource; /** * @author Dave Syer - * */ public class TestUtils { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/MessageSourceAutoConfigurationTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/MessageSourceAutoConfigurationTests.java index 0709fd8fc1..85a9dab8f0 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/MessageSourceAutoConfigurationTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/MessageSourceAutoConfigurationTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure; import java.util.HashMap; @@ -27,7 +28,6 @@ import static org.junit.Assert.assertEquals; /** * @author Dave Syer - * */ public class MessageSourceAutoConfigurationTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/batch/BatchAutoConfigurationTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/batch/BatchAutoConfigurationTests.java index 62fd406f7f..a7e8b460c8 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/batch/BatchAutoConfigurationTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/batch/BatchAutoConfigurationTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.batch; import java.util.Collection; @@ -39,7 +40,6 @@ import static org.junit.Assert.assertNotNull; /** * @author Dave Syer - * */ public class BatchAutoConfigurationTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/batch/JobExecutionExitCodeGeneratorTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/batch/JobExecutionExitCodeGeneratorTests.java index 06c74837e0..c256deaba4 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/batch/JobExecutionExitCodeGeneratorTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/batch/JobExecutionExitCodeGeneratorTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.batch; import org.junit.Test; @@ -23,7 +24,6 @@ import static org.junit.Assert.assertEquals; /** * @author Dave Syer - * */ public class JobExecutionExitCodeGeneratorTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/data/JpaRepositoriesAutoConfigurationTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/data/JpaRepositoriesAutoConfigurationTests.java index 54425c0dc5..e0e5d5a555 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/data/JpaRepositoriesAutoConfigurationTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/data/JpaRepositoriesAutoConfigurationTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.data; import javax.persistence.EntityManagerFactory; @@ -32,7 +33,6 @@ import static org.junit.Assert.assertNotNull; /** * @author Dave Syer - * */ public class JpaRepositoriesAutoConfigurationTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/data/JpaWebAutoConfigurationTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/data/JpaWebAutoConfigurationTests.java index 8049c9b8f1..7dbd8ac243 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/data/JpaWebAutoConfigurationTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/data/JpaWebAutoConfigurationTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.data; import org.junit.Ignore; @@ -32,7 +33,6 @@ import static org.junit.Assert.assertNotNull; /** * @author Dave Syer - * */ @Ignore // until spring data commons 1.6.0, jpa 1.5.0 available diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/data/test/City.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/data/test/City.java index 91d6911b59..c686cf6d19 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/data/test/City.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/data/test/City.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.autoconfigure.data.test; import java.io.Serializable; diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/data/test/CityRepository.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/data/test/CityRepository.java index 7037700fcc..1e9e614502 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/data/test/CityRepository.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/data/test/CityRepository.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.autoconfigure.data.test; import org.springframework.data.domain.Page; diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/BasicDataSourceConfigurationTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/BasicDataSourceConfigurationTests.java index 5bd94ec791..3c89dcd474 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/BasicDataSourceConfigurationTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/BasicDataSourceConfigurationTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.jdbc; import javax.sql.DataSource; @@ -24,7 +25,6 @@ import static org.junit.Assert.assertNotNull; /** * @author Dave Syer - * */ public class BasicDataSourceConfigurationTests { @@ -35,7 +35,7 @@ public class BasicDataSourceConfigurationTests { this.context.register(BasicDataSourceConfiguration.class); this.context.refresh(); assertNotNull(this.context.getBean(DataSource.class)); - context.close(); + this.context.close(); } } diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/DataSourceAutoConfigurationTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/DataSourceAutoConfigurationTests.java index 733b041ab5..e4d96117a8 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/DataSourceAutoConfigurationTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/DataSourceAutoConfigurationTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.jdbc; import java.util.HashMap; @@ -35,7 +36,6 @@ import static org.junit.Assert.assertTrue; /** * @author Dave Syer - * */ public class DataSourceAutoConfigurationTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/DataSourceTransactionManagerAutoConfigurationTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/DataSourceTransactionManagerAutoConfigurationTests.java index b61451aaef..3ab6041ab7 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/DataSourceTransactionManagerAutoConfigurationTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/DataSourceTransactionManagerAutoConfigurationTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.jdbc; import javax.sql.DataSource; @@ -26,7 +27,6 @@ import static org.junit.Assert.assertNotNull; /** * @author Dave Syer - * */ public class DataSourceTransactionManagerAutoConfigurationTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/EmbeddedDatabaseConfigurationTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/EmbeddedDatabaseConfigurationTests.java index 8880b6a770..3b48d612d3 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/EmbeddedDatabaseConfigurationTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/EmbeddedDatabaseConfigurationTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.jdbc; import javax.sql.DataSource; @@ -24,7 +25,6 @@ import static org.junit.Assert.assertNotNull; /** * @author Dave Syer - * */ public class EmbeddedDatabaseConfigurationTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/TomcatDataSourceConfigurationTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/TomcatDataSourceConfigurationTests.java index 3335f43c00..8efdfebb99 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/TomcatDataSourceConfigurationTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/jdbc/TomcatDataSourceConfigurationTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.jdbc; import java.lang.reflect.Field; @@ -32,12 +33,13 @@ import static org.junit.Assert.assertNotNull; /** * @author Dave Syer - * */ public class TomcatDataSourceConfigurationTests { private AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(); + private Map old; + private Map map; @After diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/orm/jpa/HibernateJpaAutoConfigurationTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/orm/jpa/HibernateJpaAutoConfigurationTests.java index 7cf26e6147..e696f7f326 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/orm/jpa/HibernateJpaAutoConfigurationTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/orm/jpa/HibernateJpaAutoConfigurationTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.orm.jpa; import javax.sql.DataSource; @@ -31,7 +32,6 @@ import static org.junit.Assert.assertTrue; /** * @author Dave Syer - * */ public class HibernateJpaAutoConfigurationTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/orm/jpa/test/City.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/orm/jpa/test/City.java index 6a235d6004..1b16187938 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/orm/jpa/test/City.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/orm/jpa/test/City.java @@ -1,3 +1,19 @@ +/* + * Copyright 2012-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.springframework.bootstrap.autoconfigure.orm.jpa.test; import java.io.Serializable; diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/web/ServerPropertiesConfigurationTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/web/ServerPropertiesConfigurationTests.java index 969726fe46..1a6b850465 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/web/ServerPropertiesConfigurationTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/autoconfigure/web/ServerPropertiesConfigurationTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.autoconfigure.web; import java.io.File; @@ -36,7 +37,6 @@ import static org.junit.Assert.assertNotNull; /** * @author Dave Syer - * */ public class ServerPropertiesConfigurationTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/bind/PropertySourcesPropertyValuesTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/bind/PropertySourcesPropertyValuesTests.java index 9a05c6fe54..63032c61e0 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/bind/PropertySourcesPropertyValuesTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/bind/PropertySourcesPropertyValuesTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.bind; import java.util.Collections; @@ -28,7 +29,6 @@ import static org.junit.Assert.assertEquals; /** * @author Dave Syer - * */ public class PropertySourcesPropertyValuesTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/bind/RelaxedDataBinderTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/bind/RelaxedDataBinderTests.java index 6bb3020e42..9d579d78f7 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/bind/RelaxedDataBinderTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/bind/RelaxedDataBinderTests.java @@ -1,14 +1,17 @@ /* - * Cloud Foundry 2012.02.03 Beta - * Copyright (c) [2009-2012] VMware, Inc. All Rights Reserved. + * Copyright 2012-2013 the original author or authors. * - * This product is licensed to you under the Apache License, Version 2.0 (the "License"). - * You may not use this product except in compliance with the License. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * This product includes a number of subcomponents with - * separate copyright notices and license terms. Your use of these - * subcomponents is subject to the terms and conditions of the - * subcomponent's license, as noted in the LICENSE file. + * 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.springframework.bootstrap.bind; diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/bind/YamlConfigurationFactoryTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/bind/YamlConfigurationFactoryTests.java index ceee3dcd62..0d213a0f33 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/bind/YamlConfigurationFactoryTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/bind/YamlConfigurationFactoryTests.java @@ -13,9 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.springframework.bootstrap.bind; -import static org.junit.Assert.assertEquals; +package org.springframework.bootstrap.bind; import java.util.Collections; import java.util.HashMap; @@ -31,9 +30,10 @@ import org.springframework.validation.Validator; import org.springframework.validation.beanvalidation.SpringValidatorAdapter; import org.yaml.snakeyaml.error.YAMLException; +import static org.junit.Assert.assertEquals; + /** * @author Dave Syer - * */ public class YamlConfigurationFactoryTests { @@ -44,14 +44,14 @@ public class YamlConfigurationFactoryTests { private Map, Map> aliases = new HashMap, Map>(); private Foo createFoo(final String yaml) throws Exception { - factory = new YamlConfigurationFactory(Foo.class); - factory.setYaml(yaml); - factory.setExceptionIfInvalid(true); - factory.setPropertyAliases(aliases); - factory.setValidator(validator); - factory.setMessageSource(new StaticMessageSource()); - factory.afterPropertiesSet(); - return factory.getObject(); + this.factory = new YamlConfigurationFactory(Foo.class); + this.factory.setYaml(yaml); + this.factory.setExceptionIfInvalid(true); + this.factory.setPropertyAliases(this.aliases); + this.factory.setValidator(this.validator); + this.factory.setMessageSource(new StaticMessageSource()); + this.factory.afterPropertiesSet(); + return this.factory.getObject(); } @Test @@ -62,7 +62,7 @@ public class YamlConfigurationFactoryTests { @Test public void testValidYamlWithAliases() throws Exception { - aliases.put(Foo.class, Collections.singletonMap("foo-name", "name")); + this.aliases.put(Foo.class, Collections.singletonMap("foo-name", "name")); Foo foo = createFoo("foo-name: blah\nbar: blah"); assertEquals("blah", foo.name); } @@ -74,8 +74,8 @@ public class YamlConfigurationFactoryTests { @Test(expected = BindException.class) public void missingPropertyCausesValidationError() throws Exception { - validator = new SpringValidatorAdapter(Validation.buildDefaultValidatorFactory() - .getValidator()); + this.validator = new SpringValidatorAdapter(Validation + .buildDefaultValidatorFactory().getValidator()); createFoo("bar: blah"); } diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/config/YamlMapFactoryBeanTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/config/YamlMapFactoryBeanTests.java index b9d66b5349..a0f54c1852 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/config/YamlMapFactoryBeanTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/config/YamlMapFactoryBeanTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.config; import java.io.IOException; @@ -30,7 +31,6 @@ import static org.junit.Assert.assertEquals; /** * @author Dave Syer - * */ public class YamlMapFactoryBeanTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/config/YamlPropertiesFactoryBeanTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/config/YamlPropertiesFactoryBeanTests.java index de92a189fd..ae76eac428 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/config/YamlPropertiesFactoryBeanTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/config/YamlPropertiesFactoryBeanTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.config; import java.util.Arrays; @@ -33,7 +34,6 @@ import static org.junit.Assert.assertEquals; /** * @author Dave Syer - * */ public class YamlPropertiesFactoryBeanTests { diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/AssertMissingBean.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/AssertMissingBean.java similarity index 100% rename from spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/AssertMissingBean.java rename to spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/AssertMissingBean.java diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/AssertMissingBeanCondition.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/AssertMissingBeanCondition.java similarity index 100% rename from spring-bootstrap/src/main/java/org/springframework/bootstrap/context/annotation/AssertMissingBeanCondition.java rename to spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/AssertMissingBeanCondition.java diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/EnableConfigurationPropertiesTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/EnableConfigurationPropertiesTests.java index 759484f35f..8ca7e694c3 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/EnableConfigurationPropertiesTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/EnableConfigurationPropertiesTests.java @@ -34,7 +34,6 @@ import static org.junit.Assert.assertNotNull; /** * @author Dave Syer - * */ public class EnableConfigurationPropertiesTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/NotWebApplicationConditionTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/NotWebApplicationConditionTests.java index 07b92a78a8..ab71da42e7 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/NotWebApplicationConditionTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/NotWebApplicationConditionTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.context.annotation; import org.junit.Test; @@ -26,7 +27,6 @@ import static org.junit.Assert.assertTrue; /** * @author Dave Syer - * */ public class NotWebApplicationConditionTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnBeanConditionTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnBeanConditionTests.java index 061d3f53ba..14cc03dd45 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnBeanConditionTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnBeanConditionTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.context.annotation; import org.junit.Ignore; @@ -28,7 +29,6 @@ import static org.junit.Assert.assertTrue; /** * @author Dave Syer - * */ @Ignore public class OnBeanConditionTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnClassConditionTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnClassConditionTests.java index 3e4a95eda9..d9e29da903 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnClassConditionTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnClassConditionTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.context.annotation; import org.junit.Test; @@ -28,7 +29,6 @@ import static org.junit.Assert.assertTrue; /** * @author Dave Syer - * */ public class OnClassConditionTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnExpressionConditionTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnExpressionConditionTests.java index 9df5ccebe3..f546698865 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnExpressionConditionTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnExpressionConditionTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.context.annotation; import org.junit.Test; @@ -26,7 +27,6 @@ import static org.junit.Assert.assertTrue; /** * @author Dave Syer - * */ public class OnExpressionConditionTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnMissingBeanConditionTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnMissingBeanConditionTests.java index f0cce810f8..7e13a4e7b6 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnMissingBeanConditionTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnMissingBeanConditionTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.context.annotation; import org.junit.Test; @@ -26,7 +27,6 @@ import static org.junit.Assert.assertTrue; /** * @author Dave Syer - * */ public class OnMissingBeanConditionTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnMissingClassConditionTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnMissingClassConditionTests.java index a5acea274e..52d2d79b60 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnMissingClassConditionTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnMissingClassConditionTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.context.annotation; import org.junit.Test; @@ -26,7 +27,6 @@ import static org.junit.Assert.assertTrue; /** * @author Dave Syer - * */ public class OnMissingClassConditionTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnResourceConditionTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnResourceConditionTests.java index 82b1a29ece..9ec8c738d0 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnResourceConditionTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/OnResourceConditionTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.context.annotation; import org.junit.Test; @@ -26,7 +27,6 @@ import static org.junit.Assert.assertTrue; /** * @author Dave Syer - * */ public class OnResourceConditionTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/WebApplicationConditionTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/WebApplicationConditionTests.java index 40579703e7..0e6b1790ad 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/WebApplicationConditionTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/annotation/WebApplicationConditionTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.context.annotation; import org.junit.Test; @@ -27,7 +28,6 @@ import static org.junit.Assert.assertTrue; /** * @author Dave Syer - * */ public class WebApplicationConditionTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/initializer/EnvironmentDelegateApplicationContextInitializerTest.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/initializer/EnvironmentDelegateApplicationContextInitializerTest.java index 47cbe3cd16..401a41b330 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/initializer/EnvironmentDelegateApplicationContextInitializerTest.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/initializer/EnvironmentDelegateApplicationContextInitializerTest.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.context.initializer; import java.util.HashMap; @@ -21,7 +22,6 @@ import java.util.Map; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; -import org.springframework.bootstrap.context.initializer.EnvironmentDelegateApplicationContextInitializer; import org.springframework.context.ApplicationContextException; import org.springframework.context.ApplicationContextInitializer; import org.springframework.context.ConfigurableApplicationContext; diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/test/EnableConfigurationPropertiesTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/test/EnableConfigurationPropertiesTests.java index e6ed05e4a9..6911dbbe4f 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/test/EnableConfigurationPropertiesTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/context/test/EnableConfigurationPropertiesTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.context.test; import java.util.Properties; @@ -33,7 +34,6 @@ import static org.junit.Assert.assertEquals; /** * @author Dave Syer - * */ public class EnableConfigurationPropertiesTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/logging/JavaLoggerConfigurerTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/logging/JavaLoggerConfigurerTests.java index 89611cf4b8..8b5d80ee7f 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/logging/JavaLoggerConfigurerTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/logging/JavaLoggerConfigurerTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.logging; import java.io.ByteArrayOutputStream; @@ -29,7 +30,6 @@ import static org.junit.Assert.assertTrue; /** * @author Dave Syer - * */ public class JavaLoggerConfigurerTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/logging/LogbackConfigurerTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/logging/LogbackConfigurerTests.java index 2f5d787150..0a856f9755 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/logging/LogbackConfigurerTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/logging/LogbackConfigurerTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.logging; import java.io.ByteArrayOutputStream; @@ -29,7 +30,6 @@ import static org.junit.Assert.assertTrue; /** * @author Dave Syer - * */ public class LogbackConfigurerTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/logging/LoggingInitializerTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/logging/LoggingInitializerTests.java index 1f9e64e4a7..90d475dfb6 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/logging/LoggingInitializerTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/logging/LoggingInitializerTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.logging; import java.io.ByteArrayOutputStream; diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/logging/TestFormatter.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/logging/TestFormatter.java index 0392df667e..b198303812 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/logging/TestFormatter.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/logging/TestFormatter.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.logging; import java.util.logging.Formatter; @@ -20,7 +21,6 @@ import java.util.logging.LogRecord; /** * @author Dave Syer - * */ public class TestFormatter extends Formatter { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/main/SimpleMainTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/main/SimpleMainTests.java index fe41750a77..40a7606345 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/main/SimpleMainTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/main/SimpleMainTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.main; import org.junit.After; @@ -25,7 +26,6 @@ import static org.junit.Assert.assertNotNull; /** * @author Dave Syer - * */ public class SimpleMainTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/maven/PropertiesMergingResourceTransformerTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/maven/PropertiesMergingResourceTransformerTests.java index b8fc198049..abbdf82bb1 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/maven/PropertiesMergingResourceTransformerTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/maven/PropertiesMergingResourceTransformerTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.maven; import java.io.ByteArrayOutputStream; @@ -28,7 +29,6 @@ import static org.junit.Assert.assertTrue; /** * @author Dave Syer - * */ public class PropertiesMergingResourceTransformerTests { diff --git a/spring-bootstrap/src/test/java/org/springframework/bootstrap/properties/ServerPropertiesTests.java b/spring-bootstrap/src/test/java/org/springframework/bootstrap/properties/ServerPropertiesTests.java index c3011b3546..10034cbf91 100644 --- a/spring-bootstrap/src/test/java/org/springframework/bootstrap/properties/ServerPropertiesTests.java +++ b/spring-bootstrap/src/test/java/org/springframework/bootstrap/properties/ServerPropertiesTests.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.bootstrap.properties; import java.net.InetAddress;