kieker-monitoring / kieker

Kieker's main repository
Apache License 2.0
70 stars 41 forks source link

[KIEKER-1033] TestSpringMethodInterceptor shutting down the server correctly? #2811

Closed rju closed 1 week ago

rju commented 1 week ago

JIRA Issue: KIEKER-1033 TestSpringMethodInterceptor shutting down the server correctly? Original Reporter: Jan Waller


Does the cleanup method of the TestSpringMethodInterceptor correctly close the server.

#!java
this.ctx.destroy(); // TODO: is this shutting down the server?
rju commented 1 week ago

author nils-christian -- Tue, 12 Nov 2013 13:05:01 +0100

From the 3.2.x API description:

public void destroy()

...

The close method is the native way to shut down an ApplicationContext.

and

public void close()

Close this application context, destroying all beans in its bean factory. 

...
rju commented 1 week ago

author nils-christian -- Tue, 12 Nov 2013 13:18:26 +0100

Replaced in changeset:78656f095820aae0868a066f6ade75f1d483d5f4.