Re: Compiling error returning service interface in service locator method

2012-08-21 Thread Thiago H de Paula Figueiredo
On Tue, 21 Aug 2012 11:26:21 -0300, George Christman wrote: Well I think I need to create an interface to ParserImpl, "Parser" and in the AutoMateParser interface extend Parser. However as I know now this is deff not an issue in how I'm using the services, but rather a George's Java skil

Re: Compiling error returning service interface in service locator method

2012-08-21 Thread George Christman
m outside of Tapestry, so I sometimes easily confuse the two. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Compiling-error-returning-service-interface-in-service-locator-method-tp5715645p5715670.html Sent from the Tapestry - User mailing l

Re: Compiling error returning service interface in service locator method

2012-08-21 Thread Thiago H de Paula Figueiredo
Just make getParser() return AutoMateParser instead of Parser. That's object-oriented programming: if you have something that is defined by an interface, use the interface. ;) -- Thiago H. de Paula Figueiredo - To unsubscrib

Re: Compiling error returning service interface in service locator method

2012-08-21 Thread George Christman
btw, my Parser.class is an abstract class. Sorry, I missed that in my example. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Compiling-error-returning-service-interface-in-service-locator-method-tp5715645p5715664.html Sent from the Tapestry - User mailing list archive

Re: Compiling error returning service interface in service locator method

2012-08-21 Thread George Christman
> To unsubscribe, e-mail: [hidden > email]<http://user/SendEmail.jtp?type=node&node=5715660&i=1> > For additional commands, e-mail: [hidden > email]<http://user/SendEmail.jtp?type=node&node=5715660&i=2> > > > > ------ >

Re: Compiling error returning service interface in service locator method

2012-08-21 Thread Thiago H de Paula Figueiredo
On Tue, 21 Aug 2012 00:27:38 -0300, George Christman wrote: Hello, in my DMSServiceLocator.class, I have a method called getParser() with a return type called Parser. I'm trying to return a service called AutoMateParser with an Impl that extends Parser, however I'm' getting a compiling err

Re: Compiling error returning service interface in service locator method

2012-08-21 Thread George Christman
There's no interface to Parser, Parser is just an extended class located in my service package along with my AutoMateParserImpl. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Compiling-error-returning-service-interface-in-service-locator-method-tp5715645p5715658

Re: Compiling error returning service interface in service locator method

2012-08-20 Thread Joakim Olsson
/some csv line reader code > protected abstract Vehicle parseCar(String carData); > } > > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Compiling-error-returning-service-interface-in-service-locator-method-tp5715645.html > Sent from

Compiling error returning service interface in service locator method

2012-08-20 Thread George Christman
essage in context: http://tapestry.1045711.n5.nabble.com/Compiling-error-returning-service-interface-in-service-locator-method-tp5715645.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To