« Return to Thread: Singleton Pattern in ATG

Re: Singleton Pattern in ATG

by Mani ATG :: Rate this Message:

Reply to Author | View in Thread

I dont have issues, just for practice.

I agree, global scoped component maintains single instance over the session.
Can we use following to maintain singleton:

create nucleus component with public void synchronized constructor.

 « Return to Thread: Singleton Pattern in ATG