commit | ebc5d22159cbfa10c3a2f2868552fa10c6988495 | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@onlab.us> | Wed Mar 18 15:45:36 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Mon Mar 23 21:12:14 2015 +0000 |
tree | c1eef0340c489d5991b8f7fe8e8416b7997757d2 | |
parent | 0d18df3f35b9f34475f204d748347cd62bffa03b [diff] |
Refactor connectivity intent creation to use builders - Each connectivity intent now has only one constructor - Intent constructors are now private for leaf classes and protected for classes that can be derived from - Each intent class has a Builder class that accumulates parameters for intent creation - Each intent class has a public static builder() method to create a builder - Each Builder class has a build() method to create the intent from the accumulated parameters - Added keys to a few intent types that were missing them - Tightened up usage of checkNotNull(), taking advantage of the return value to save some lines of code - Modified callers to use the builders instead of directly calling the constructors Change-Id: I713185d5ecbadbf51f87ef7f68fec41102106c78
ONOS is a new SDN network operating system designed for high availability, performance, scale-out.