• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tapestry5 help with IOC service

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HiGuys,

Please help me with some pointers on this.

I have created my own Service TestService and in the method getMessagesAll() in TestService.java i want to use A built In tapestry 5 ioc service.

ie.

public class TabLocatorImpl implements TabLocator {

@Inject
private ClassNameLocator classNameLocation ;
public List<String> getMessagesAll() {


return classNameLocation.locateClassNames("MyPackageName); ;

}


The above class while running is giving me a null pointer exception for the line classNameLocation.locateClassName(); i.e classNameLocation service is not being injected. May i know the reason why. The same code is working when i use the classNameLocation.locateClassNames() in one of my Components.






}


 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic