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
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:
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 737

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1524

Posts: 6450

Newest Members:

fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1