Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
Paul-Christian Volkmer
ARSnova Backend
Commits
ab40d47e
Commit
ab40d47e
authored
10 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Fix Spring event handling for Socket.IO server
parent
a3f90113
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/thm/arsnova/socket/ARSnovaSocketListener.java
+3
-2
3 additions, 2 deletions
...ain/java/de/thm/arsnova/socket/ARSnovaSocketListener.java
src/main/webapp/WEB-INF/spring/spring-main.xml
+2
-0
2 additions, 0 deletions
src/main/webapp/WEB-INF/spring/spring-main.xml
with
5 additions
and
2 deletions
src/main/java/de/thm/arsnova/socket/ARSnovaSocketListener.java
+
3
−
2
View file @
ab40d47e
...
@@ -22,6 +22,7 @@ import org.springframework.context.ApplicationListener;
...
@@ -22,6 +22,7 @@ import org.springframework.context.ApplicationListener;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
de.thm.arsnova.events.NovaEvent
;
import
de.thm.arsnova.events.NovaEvent
;
import
de.thm.arsnova.events.NovaEventVisitor
;
/**
/**
* An external Listener is required because otherwise the event methods are not called through a Spring proxy.
* An external Listener is required because otherwise the event methods are not called through a Spring proxy.
...
@@ -31,11 +32,11 @@ import de.thm.arsnova.events.NovaEvent;
...
@@ -31,11 +32,11 @@ import de.thm.arsnova.events.NovaEvent;
public
class
ARSnovaSocketListener
implements
ApplicationListener
<
NovaEvent
>
{
public
class
ARSnovaSocketListener
implements
ApplicationListener
<
NovaEvent
>
{
@Autowired
@Autowired
private
ARSnovaSocket
IOServer
socketServer
;
private
ARSnovaSocket
socketServer
;
@Override
@Override
public
void
onApplicationEvent
(
NovaEvent
event
)
{
public
void
onApplicationEvent
(
NovaEvent
event
)
{
event
.
accept
(
socketServer
);
event
.
accept
(
(
NovaEventVisitor
)
socketServer
);
}
}
}
}
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/spring/spring-main.xml
+
2
−
0
View file @
ab40d47e
...
@@ -40,4 +40,6 @@
...
@@ -40,4 +40,6 @@
</bean>
</bean>
<bean
id=
"databaseDao"
class=
"de.thm.arsnova.dao.CouchDBDao"
/>
<bean
id=
"databaseDao"
class=
"de.thm.arsnova.dao.CouchDBDao"
/>
<bean
id=
"socketListener"
class=
"de.thm.arsnova.socket.ARSnovaSocketListener"
/>
</beans>
</beans>
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment