Skip to content

Condition API for Dependent Resources Should Contain the Dependent Resource not the Actual Resource #1689

Closed
@csviri

Description

@csviri

See this report for some details: #1687

The idea is to change back (was like this before) the API of the Condition to not only handle the resource:

boolean isMet(P primary, R secondary, Context<P> context);

but rather the dependent resource:

boolean isMet(P primary, D dependentResource, Context<P> context);

Rational: This will make a more generic api, where the distinction if its a bulk managed resource or other is done within the implementation. In case some implements a custom dependent resource and provides some additional functionalities that could be accessed also more elegantly.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions