Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[e4-dev] Strange behaviour in e4 DI

Hi,

I tried to use OSGI log service in one of the Part. So I have added the below code ( DI) and I found a strange behaviour. The second SOP prints only "false". It is not printing  the string "Log Reader service "
It looks like there is a problem in the code generation ??


@Inject
ExtendedLogService logger;
@Inject
LogReaderService readerService;
@PostConstruct
public void init(Composite parent,final MWindow window){
boolean ss = logger == null;
System.out.println("Logger service "+ ss);
System.out.println("Log Reader service   " + readerService == null);
}



Output
-------------
Logger service false
false

Back to the top