cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Best practices for using Guice in Windchill customizations

Highlighted
Participant

Best practices for using Guice in Windchill customizations

Dear all,

we use Guice in many of our customizations and even though it work fairly well I have started to think a bit about how to do this in a manner that follows some sort of best practices. There are many entry points into Windchill customizations such as service startups, action validators, form processors, data utilites and so on and because of that I often find myself creating multiple instances of the Guice Injector class in order to instantiate my objects via Guice. 

 

It seems to me that since Windchill is a (more or less) Spring based web applicaion threre should be some way of loading modules and creating an injector in a way that allows me to create it once and then reuse throughout my various customizations. 

 

Has anyone else managed to find some sort of best practice aproach to this or is there anyone who has some ideas and/or opinions on this subject? Any input will be greatly appreciated. 

 

Best regards

Daniel Södling 

 

2 REPLIES 2

Re: Best practices for using Guice in Windchill customizations

Hi,

I've bever used Guice in PDMlink, but just a remark. PDMLink is not a Spring app. It uses some Sptring elements, like controllers, but nothing more.

But maybe it's enough to use Guice :-) I'm intersted to know if it works.

 

Re: Best practices for using Guice in Windchill customizations

Thanks for the clarification, that makes one less path to investigate. 

I'll let you know if I figure something out.

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum! ______________________________ Check out the Windchill Tips Board! We're talking about Whirlpool's use of digital twin, augmented reality, and data-driven design!

The NAVIGATE WORKING GROUP is here! Come innovate with PTC!

Sign up for a Working Group