Package de.hybris.platform.util
Class SingletonCreator.Creator<T>
java.lang.Object
de.hybris.platform.util.SingletonCreator.Creator<T>
- Direct Known Subclasses:
Manager.GenericManagerSingletonCreator,Manager.ManagerSingletonCreator
- Enclosing class:
- SingletonCreator
abstract class used to for the Singleton creation.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Creator
public Creator()
-
-
Method Details
-
getID
returns a unique id which is used in the internal cache map as the key for the singleton instance.- Returns:
- the unique ID
-
create
create the singleton instance- Throws:
Exception
-
isExpired
protected boolean isExpired()- Returns:
- true if this creator is expired which means a new instance will be created (via create()) instead of returning an already created instance
-
destroy
cleans up the singleton instance. this hookin method is invoked whenever SingletonCreator.destroy() is called.- Throws:
Exception
-