Sometimes you meet code like this.
I don't understand even a snippet.
public class LinesJournalist extends Journalist { private final LinesLiner _liner; public LinesJournalist(LinesLiner liner) { _liner = liner; } @Override public AbstractMessage createMessageFrom(MessageFactory aMessageFactory, Fields anInput) { // THINK: e' sospetto che per association liner non posso passare NullLiner... LinesConfigurableLiner associationLiner = new LinesConfigurableLiner("", false, false); LinesConfigurableLiner valuesLiner = new LinesConfigurableLiner("", false, false); Lines lines = anInput.asLines(new FieldsSimpleLiner(new LinkSimpleLiner(associationLiner, new LinesEmptyLiner(), valuesLiner))); Fields fields = Fields.single(AbstractMessage.MESSAGE, lines.asLines(_liner).report()); return aMessageFactory.make(fields); } }
Nessun commento:
Posta un commento