[
https://issues.apache.org/jira/browse/S4-5?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13167626#comment-13167626
]
Leo Neumeyer commented on S4-5:
-------------------------------
I summarize the problem here:
{code:title=Builder Pattern|borderStyle=dashed}
class PE {
PE builderMethod() {
}
}
class SomePE extends PE {
void someSetter() {
}
}
class MyApp extends App {
onInit {
PE pe = createPE(SomePE.class).with("XXX");
SomePE somePE = (SomePE) pe;
somePE.someSetter();
}
}
{code}
How can we do this without requiring a cast? Asking end user to cast is out of
the question of course. I also want to avoid a separate builder class. Ideas?
> Prototype app builder
> ---------------------
>
> Key: S4-5
> URL: https://issues.apache.org/jira/browse/S4-5
> Project: Apache S4
> Issue Type: New Feature
> Affects Versions: 0.5
> Reporter: Leo Neumeyer
> Priority: Minor
> Fix For: 0.5
>
>
> Extend Guice AbstractModule to create a simple application builder layer. The
> idea is to evaluate if we can use Guice to do all the wiring including PEs
> and Streams and Apps.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira