polishing
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user