Interface InstanceManager

All Known Implementing Classes:
DefaultInstanceManager, SimpleInstanceManager

public interface InstanceManager
Interface for creating and managing instances of objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called by the component using the InstanceManager periodically to perform any regular maintenance that might be required.
    void
    Destroy the given instance, performing pre-destroy callbacks.
    newInstance(Class<?> clazz)
    Create a new instance of the given class.
    void
    Perform dependency injection on the given object.
    newInstance(String className)
    Create a new instance of the class with the given name.
    newInstance(String fqcn, ClassLoader classLoader)
    Create a new instance of the class with the given name using the specified class loader.