You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2015/05/03 11:24:05 UTC

[jira] [Created] (CAY-2010) Splitting DataSourceBuilder from ServerRuntimeBuilder

Andrus Adamchik created CAY-2010:
------------------------------------

             Summary: Splitting DataSourceBuilder from ServerRuntimeBuilder
                 Key: CAY-2010
                 URL: https://issues.apache.org/jira/browse/CAY-2010
             Project: Cayenne
          Issue Type: Task
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik
             Fix For: 4.0.M3


As we are adding more parameters to Cayenne DataSource (validation query, etc.), it would make sense to split DataSource builder methods from ServerRuntimeBuilder, and use a separate builder instead. So the new code may look like this:

DataSource ds = DataSourceBuilder.bla(..).build();
ServerRuntimeBuilder.builder().dataSource(ds).build();

In fact the builder was already committed per CAY-2008, CAY-2009. So here we'll just clean up ServerRuntimeBuilder.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)