Avatar

Please consider registering
guest

sp_LogInOut Log In sp_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 RSS sp_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
Moderator
Members

Moderators
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
Moderator
Members

Moderators
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: 518

Currently Online:
12 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 682

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

digitechroshni, LouieWreve, Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1