Package io.datarouter.inject
Class InstanceRegistry
java.lang.Object
io.datarouter.inject.InstanceRegistry
@Singleton public class InstanceRegistry extends Object
For manually tracking instances in prototype scope or those created with 'new'
-
Constructor Summary
Constructors Constructor Description InstanceRegistry() -
Method Summary
Modifier and Type Method Description <T> Collection<T>getAllInstancesOfType(Class<T> type)voidregister(Object obj)
-
Constructor Details
-
InstanceRegistry
public InstanceRegistry()
-
-
Method Details
-
register
-
getAllInstancesOfType
-