Browse Source

polishing

pull/23217/head
Juergen Hoeller 17 years ago
parent
commit
882c195221
  1. 6
      org.springframework.context/src/main/java/org/springframework/remoting/support/SimpleHttpServerFactoryBean.java

6
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 #setPort
* @see #setContexts * @see #setContexts
*/ */
public class SimpleHttpServerFactoryBean implements FactoryBean, InitializingBean, DisposableBean { public class SimpleHttpServerFactoryBean implements FactoryBean<HttpServer>, InitializingBean, DisposableBean {
protected final Log logger = LogFactory.getLog(getClass()); protected final Log logger = LogFactory.getLog(getClass());
@ -167,11 +167,11 @@ public class SimpleHttpServerFactoryBean implements FactoryBean, InitializingBea
this.server.start(); this.server.start();
} }
public Object getObject() { public HttpServer getObject() {
return this.server; return this.server;
} }
public Class getObjectType() { public Class<? extends HttpServer> getObjectType() {
return (this.server != null ? this.server.getClass() : HttpServer.class); return (this.server != null ? this.server.getClass() : HttpServer.class);
} }

Loading…
Cancel
Save