Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » Problem with annotated injection
Problem with annotated injection [message #583092] Mon, 03 August 2009 17:28
RRK is currently offline RRKFriend
Messages: 21
Registered: July 2009
Junior Member

in Riena I like to inject services with @InjectService.
Everything is easy in a SubModuleController class.
But in pojo's I have the problem, that bind won't be called.

The following code runs well from Activator.start
for pojo CurrentUser without annotation:

currentUser = new CurrentUser();

If in Activator.start or any other place only
currentUser = new CurrentUser()
is called and CurrentUser is annotated like this the services are null.

public class CurrentUser {
private ISubjectHolderService subjectHolderService;
private IUserService userService;
@InjectService(service= IUserService.class ,unbind = "unbindUserService")
public void bindUserService(IUserService srv) {
this.userService = srv;
@InjectService(service=ISubjectHolderService.class,unbind="unbindSubjectHolderService ")
public void bindSubjectHolderService(ISubjectHolderService srv)
this.subjectHolderService = srv;

If tried to change @InjectService or use @WireWith but I can't get it run.

What goes wrong.

Previous Topic:Where to see the apis provided by Riena?
Next Topic:Problem with annotated injection
Goto Forum:

Current Time: Sun Sep 24 18:23:12 GMT 2023

Powered by FUDForum. Page generated in 0.02354 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top