Skip to main content


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 14:00 Go to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
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 18:21 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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 08:46 Go to previous message
Eclipse UserFriend
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: Fri Apr 19 20:59:46 GMT 2024

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

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

Back to the top