Avatar
Please consider registering
guest
sp_LogInOut Log Insp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSSsp_TopicIcon
SDK Feature Request: RetentionPolicy on @Mandatory and @Optional
August 9, 2016
10:25, EEST
Avatar
HakonWaldeck
New Member
Members
Forum Posts: 2
Member Since:
August 9, 2016
sp_UserOfflineSmall Offline

Hei,

I have a small feature request:
Would it be possible to add the “RetentionPolicy=RUNTIME” to @Mandatory and @Optional -Annotations in future versions of the SDK? [Classes com.prosysopc.ua.nodes.Optional / com.prosysopc.ua.nodes.Mandatory].

Actually only the @TypeDefinitionId -Annotation has a Runtime RetentionPolicy.
Reading those annotations reflectively at runtime would be a great relief for working with the codegen model.
I’m using version 2.2.2-638 of the API.

Thanks & greets from Germany,
Hakon

August 9, 2016
11:42, EEST
Avatar
Heikki Tahvanainen
Member
Members
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hello,

Thank you for the proposal. This sounds like a good feature.

However, I must admit that I don’t know the design decisions behind these annotations or why they have been left out originally. Because of the holiday season, getting a more definite answer to your request will have to wait until next week.

Please let us know if you have some further requests or comments.

August 15, 2016
15:13, EEST
Avatar
Heikki Tahvanainen
Member
Members
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hi,

Yes, this indeed is a good feature. Probably the main reason for the lack of these is that the annotations are not used by the SDK internally.

If you would like to receive a beta version of the SDK containing these changes, please send an email to uajava-support at prosysopc.com.

August 22, 2016
10:40, EEST
Avatar
HakonWaldeck
New Member
Members
Forum Posts: 2
Member Since:
August 9, 2016
sp_UserOfflineSmall Offline

Hei Heikki,

that’s not urgent for me – it would be sufficient if that feature is included in the next regular release of the SDK.

Thanks, Hakon

Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
Guest(s) 17
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 90
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 734
Moderators: 8
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1545
Posts: 6521
Newest Members:
wilfredoforeman, ptdenriqueta, basilpullman, Richardmip, mood edibles, LouieWreve, daniellabdx, janessan21, sammiebeak359, gena7127517
Moderators: Jouni Aro: 1029, Pyry: 1, Petri: 1, Bjarne Boström: 1047, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0, Elias: 0
Administrators: admin: 1