From 5b1320432b5007781a58e97e4e8ff6c7cb95c7f2 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Tue, 24 Feb 2009 00:27:36 +0000 Subject: [PATCH] polishing git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@675 50f2f4bb-b051-0410-bef5-90022cba6387 --- .../remoting/support/SimpleHttpServerFactoryBean.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.springframework.context/src/main/java/org/springframework/remoting/support/SimpleHttpServerFactoryBean.java b/org.springframework.context/src/main/java/org/springframework/remoting/support/SimpleHttpServerFactoryBean.java index 8ef46c77983..192d5e3fe6a 100644 --- a/org.springframework.context/src/main/java/org/springframework/remoting/support/SimpleHttpServerFactoryBean.java +++ b/org.springframework.context/src/main/java/org/springframework/remoting/support/SimpleHttpServerFactoryBean.java @@ -51,7 +51,7 @@ import org.springframework.beans.factory.InitializingBean; * @see #setPort * @see #setContexts */ -public class SimpleHttpServerFactoryBean implements FactoryBean, InitializingBean, DisposableBean { +public class SimpleHttpServerFactoryBean implements FactoryBean, InitializingBean, DisposableBean { protected final Log logger = LogFactory.getLog(getClass()); @@ -167,11 +167,11 @@ public class SimpleHttpServerFactoryBean implements FactoryBean, InitializingBea this.server.start(); } - public Object getObject() { + public HttpServer getObject() { return this.server; } - public Class getObjectType() { + public Class getObjectType() { return (this.server != null ? this.server.getClass() : HttpServer.class); }