You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
worked with a `Map<String,R>` of resources, where id was always type of String.
15
+
worked with a `Map<String,R>` of resources, where the id was always of type String.
16
16
17
-
Mainly because of the need to manage external dependent resources more elegantly
18
-
we introduced a cross-cutting concept: [`ResourceIDMapper`](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/ResourceIDMapper.java).
19
-
That gets the ID of a resource. This is used then across various components, see:
17
+
Mainly because of the need to manage external dependent resources more elegantly,
18
+
we introduced a cross-cutting concept: [`ResourceIDMapper`](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/ResourceIDMapper.java),
19
+
which gets the ID of a resource. This is used across various components, see:
We also added [`ResourceIDProvider`](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/ResourceIDProvider.java)
27
-
that you can implement into you Pojo representing a resource.
26
+
We also added [`ResourceIDProvider`](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/ResourceIDProvider.java),
27
+
which you can implement in your Pojo representing a resource.
28
28
29
-
The easiest way to migrate to this new approach is to implement this interface for your (external) resource,
30
-
and set the ID type generics for the components above. The default implementation of the `ResourceIDMapper`
31
-
works with `ResourceIDProvider` see [related implementation](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/ResourceIDMapper.java#L52).
29
+
The easiest way to migrate to this new approach is to implement this interface for your (external) resource
30
+
and set the ID type generics for the components above. The default implementation of the `ResourceIDMapper`
31
+
works with `ResourceIDProvider`(see [related implementation](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/ResourceIDMapper.java#L52)).
32
32
33
-
If you cannot implement `ResourceIDProvider` because for example the class that represents the external resource is generated and final,
33
+
If you cannot implement `ResourceIDProvider` because, for example, the class that represents the external resource is generated and final,
34
34
you can always set a custom `ResourceIDMapper` on the components above.
0 commit comments