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 Details

    • InstanceRegistry

      public InstanceRegistry()
  • Method Details

    • register

      public void register​(Object obj)
    • getAllInstancesOfType

      public <T> Collection<T> getAllInstancesOfType​(Class<T> type)