CPS-2293: Architecture Review
References
https://lf-onap.atlassian.net/browse/CPS-2293
Issues & Decisions
NCMP
Package | Notes of packages which should not be there | Classes from illegal package | Decision | |
|---|---|---|---|---|
| 1 |
| org.onap.cps.spi, | ConditionProperties
ModuleDefinition
ModuleReference
DataNode
DataNodeNotFoundException
AlreadyDefinedException
CpsException
DataValidationException | CPS Utils can be used everywhere in the project |
| 2 | org.onap.cps.ncmp.impl | NetworkCmProxyFacade
LockReasonCategory.LOCKED_MISBEHAVING | The Facade class should be split into an interface in the api package and an actually implementation in the impl. package. LockReason category should be moved under the api package in NCMP Service. | |
| 3 |
| org.onap.cps.ncmp.impl | CmHandleQueryService
CmHandleRegistrationService
InventoryPersistence
ParameterizedCmHandleQueryService
CmHandleQueryConditions
InventoryQueryConditions
YangModelCmHandle
TrustLevelManager
AlternateIdMatcher
YangDataConverter | The Facade class should be split into an interface in the api package and an actually implementation in the impl. package.
|
| 4 | org.onap.cps.ncmp.config | CpsApplicationContext | Needs further investigation, but probably fine. | |
| 5 | org.onap.cps.spi | ModuleDefinition
ModuleReference | This should be fine. look at the comments above! | |
| 6 |
| org.onap.cps.cpspath | CpsPathUtil
PathParsingException | Cps Path module should be declared as a common module for all. |
| 7 | org.onap.cps.events | EventsPublisher | This should be kept in place to not duplicate code in the projects. An exception should be made here. | |
| 8 | org.onap.cps.impl | CpsValidator |
| |
| 9 | org.onap.cps.spi | DataNode
FetchDescendantsOption
DataValidationException
ModuleDefinition
ModuleReference
DataNode
DataNodeNotFoundException
AlreadyDefinedException
CpsException | FetchDescendantsOption should be moved into ‘spi.api’
|
CPS
Package | Notes of packages which should not be there | Classes from illegal package | Decision | |
|---|---|---|---|---|
| 1 |
| org.onap.cps.spi | Anchor
Dataspace
SchemaSet
CascadeDeleteAllowed
PaginationOption
DeltaReport
FetchDescendantsOption
AlreadyDefinedException
CpsAdminException
CpsException
CpsPathException
DataInUseException
DataNodeNotFoundException
DataValidationException
ModelValidationException
NotFoundInDataspaceException
ModelValidationException | These should be moved under spi.api and then allow their usage. |
| 2 |
| All impl should be moved out odfthe api package, so in my opinion all of these are breaking the Arch rule org.onap.cps.api,
org.onap.cps.api.impl,
org.onap.cps.events,
org.onap.cps.impl.utils,
org.onap.cps.spi,
org.onap.cps.utils,
org.onap.cps.cpspath.parser,
org.onap.cps.yang | See the comment on the left. The possible list of classes would be numerous, so I’m not detailing them. | Move the impl package from api. |