Hi Patrick
Got it, actually, I saw the dummy helper for validation purpose also ^^
The cause I ask it is that I am trying to to some injection under the TMF way implementation for a new TraceType
I try to implementation a E4 based service that can do some additional PIPE like trace processing
For example a power consume index could take frequency & load as input, output could be other pipes as input also
To bridge / trigger the service to work, I bind it to the class extends TmfTrace
To workaround it, I did a ModelAddon to force createExecutableExtension() in TmfTraceType like bellow
@PostConstruct
public void init(IEclipseContext context, IExtensionRegistry reg) {
assert context != null;
_context = context;
/*
* A hack to TMF, since inject must be before TMFTrace implementation
*
* The getInstance() call would trigger load extension points
*
* It is the point to force inject here
*
*/
TraceTypeHelper tth = TmfTraceType.getInstance().getTraceType(Activator.TRACETYPE_ID);
tmfTrace = tth.getTrace();
assert tmfTrace != null;
ContextInjectionFactory.inject(tmfTrace, _context);
.........
As you mentioned, it is for validation only. so I got null point on other callbacks like parseEvent() XDDDDDDDDDDDD
Is there any way that can make the INJECT got chance to work in the class extends TmfTrace for a new trace type ?
Or maybe I got misunderstand for the spirit of TMF framework = =!!
Thank you again for the quick response.
The TMF is very amazing !
Ran-How