Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » ContextInjectionFactory.invoke with own annotations.
ContextInjectionFactory.invoke with own annotations. [message #1046182] Sun, 21 April 2013 10:00 Go to next message
Alex Kipling is currently offline Alex Kipling
Messages: 246
Registered: July 2012
Senior Member
I would like to introduce an own annotation,
to be able calling methods like it is done with PostConstruct:

ContextInjectionFactory.invoke(injectContextInThisObject, PostConstruct.class, context); // works

ContextInjectionFactory.invoke(injectContextInThisObject, MyAnnotation.class, context); //doesnt work


I suppose, that this is caused by classLoaders problems?
Is it possible to solve this problem, in order to use own annotations with ContextInjectionFactory.invoke ?
Re: ContextInjectionFactory.invoke with own annotations. [message #1046302 is a reply to message #1046182] Sun, 21 April 2013 14:21 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5003
Registered: July 2009
Senior Member
Why do you think this is a classloader problem? I've written my own
annotations and they work like a charme.

Tom

On 21.04.13 16:00, Alex Kipling wrote:
> I would like to introduce an own annotation, to be able calling methods
> like it is done with PostConstruct:
>
>
> ContextInjectionFactory.invoke(injectContextInThisObject,
> PostConstruct.class, context); // works
>
> ContextInjectionFactory.invoke(injectContextInThisObject,
> MyAnnotation.class, context); //doesnt work
>
>
> I suppose, that this is caused by classLoaders problems?
> Is it possible to solve this problem, in order to use own annotations
> with ContextInjectionFactory.invoke ?
Re: ContextInjectionFactory.invoke with own annotations. [message #1046700 is a reply to message #1046302] Mon, 22 April 2013 04:46 Go to previous message
Sopot Cela is currently offline Sopot Cela
Messages: 589
Registered: December 2010
Senior Member

Anything in the log? How are you defining your new annotation?
Previous Topic:display the PreferencePage
Next Topic:Detecting Modifier Keys on a Contributed Menu Item
Goto Forum:
  


Current Time: Wed Apr 16 06:58:10 EDT 2014

Powered by FUDForum. Page generated in 0.05951 seconds