Reference to certain subclass or spring bean

Hi All,

I would like to have resolvable reference to Java Class or Spring bean -  where is a good starting poing for it?
Struts plugin sources show only java class reference and documentation is as usually pretty mum on the issue.

1 comment

If you're using the Dom API, resolving to a class is extremely easy.


     @Attribute("class")
     @NotNull
     @Required
     GenericAttributeValue<PsiClass> getClazz();

There's also a nice annotation for limiting the valid classes allowed

    @ExtendClass(allowInterface = true, instantiatable = false)

For resolving to Spring beans, I don't believe this easily possible as the Spring plugin is closed source. I have a similiar use case, which is why I originally posted this request http://devnet.jetbrains.com/message/5492891
You can of course try to provide your own implementation of the spring plugin though :)

0

Please sign in to leave a comment.