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
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 skill
issue lol. I've never written a Java program outside of Tapestry, so
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
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
The IDE suggest the cast because the AutoMateParser is not a sub-type of
Parser, only AutoMateParserImpl is. Just not sure how to make that work.
Any thoughts? Still new to binding, but should I be binding
AutoMateParserImpl to a Parser interface?
On Tue, Aug 21, 2012 at 8:02 AM, Thiago H de Paula
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
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.html
S
Hi George,
It sounds like your Parser interface is located in one of Tapestrys
blessed packages (pages, components, mixins etc.)
/Joakim
On Tue, Aug 21, 2012 at 5:27 AM, George Christman
wrote:
> Hello, in my DMSServiceLocator.class, I have a method called getParser() with
> a return type call