Package com.pyranid

Class DefaultInstanceProvider

    • Method Detail

      • provide

        public <T> T provide​(Class<T> instanceClass)
        Description copied from interface: InstanceProvider
        Provides an instance of the given instanceClass.

        Whether the instance is new every time or shared/reused is implementation-dependent.

        Specified by:
        provide in interface InstanceProvider
        Type Parameters:
        T - instance type token
        instanceClass - the type of instance to create
        an instance of the given instanceClass