Skip to main content
12 events
when toggle format what by license comment
Jun 16, 2020 at 10:01 history edited CommunityBot
Commonmark migration
Jun 5, 2016 at 8:34 answer added Thomas Junk timeline score: 3
Jun 4, 2016 at 20:11 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
May 5, 2016 at 19:49 answer added scorpdaddy timeline score: 0
May 2, 2016 at 14:26 comment added Rafi Goldfarb Another option is to implement Step<IndianBooks> to force the type used with this specific step during compilation
May 2, 2016 at 14:19 comment added Rafi Goldfarb Why not just have USBooks and IndianBooks that inherit from the same Books class which has publisher/price/edition.
May 2, 2016 at 9:08 comment added AgentX @Jules I have updated the Question with Problem Example.
May 2, 2016 at 9:03 history edited AgentX CC BY-SA 3.0
explained the question with an example
May 2, 2016 at 8:07 comment added AgentX @Jules I am trying to implement a simple pipeline (business logic) comprising of multiple steps. What I am looking for is to make each step reusable. This way each step can be plugged in & out in different pipelines. The constraint here is that different Pipelines might be working on different POJOs so the Stage(or step) should be able to handle that. One solution is to have multiple concrete Stages doing same thing but on different POJOs. The processing can be provided by Abstract Stage & POJO handling by Concrete Stages.
May 2, 2016 at 7:44 comment added Jules I'm not quite sure I understand your problem, but it sounds like you need to be able to add both additional processing types and data types to the same data structure. This is commonly known as the expression problem and the usual approach in an OO language is to use the visitor pattern, although there are other more exotic solutions like object algebras.
May 2, 2016 at 7:36 history edited gnat CC BY-SA 3.0
redundant tag removed from title
May 2, 2016 at 7:16 history asked AgentX CC BY-SA 3.0