Community Tip - You can change your system assigned username to something more personal in your community settings. X

Translate the entire conversation x

Can the ServiceLoader provide by Java be used in Windchill+?

dsodling
10-Marble

Can the ServiceLoader provide by Java be used in Windchill+?

Version: Windchill 13.0

 

Use Case: When running a custom service the service must be able to dynamically load classes that are described with their fully qualified names in a configuration file (or other form of storage depending on if the system is Windchill+ or not)


Description:

If I have understood things correctly I will not be able to use reflection in custom code that I want to install in a Windchill+ environment. Will I be able to use the standard ServiceLoader provided by Java?

 

As mentioned in the Use Case I am looking for a way to dynamically load classes based on some type of configuration. In an on-prem environment I can easily use Class.forName to get my class but if I understand things correctly this will be possible in Windchill+. 

 

Will I be able to use the ServiceLoader to have the same (more or less) functionality? If not, does anyone know of some other way to accomplish the same result?

 

Thank you
Daniel Martinsson

1 REPLY 1
avillanueva
22-Sapphire III
(To:dsodling)

All new territory. Is this something WReadE is supposed to identify? Please post if you find a solution on your own. You might want to reach out to the PTC folks who presented at this years conference. Lots of discussion on how Windchill+ will impact development. 

Announcements


Top Tags