icatproject / icat.server

The ICAT server offering both SOAP and "RESTlike" interfaces to a metadata catalog.
Other
1 stars 5 forks source link

Fully-static EntityInfoHandler #323

Closed ajkyffin closed 4 months ago

ajkyffin commented 4 months ago

In order to remove synchronized blocks, the PrivateEntityInfo instances are created during class static initialization and stored in immutable objects, making the class fully thread-safe.

Since everything is available in static variables, there is no need to instantiate the class, so all the methods are made static.