Browse Source

polishing

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@675 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Juergen Hoeller 17 years ago
parent
commit
5b1320432b
  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; @@ -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<HttpServer>, InitializingBean, DisposableBean {
protected final Log logger = LogFactory.getLog(getClass());
@ -167,11 +167,11 @@ public class SimpleHttpServerFactoryBean implements FactoryBean, InitializingBea @@ -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<? extends HttpServer> getObjectType() {
return (this.server != null ? this.server.getClass() : HttpServer.class);
}

Loading…
Cancel
Save