Class DefaultInstanceProvider
java.lang.Object
com.soklet.core.impl.DefaultInstanceProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
Vends an instance of the given class.static DefaultInstanceProvider
-
Constructor Details
-
DefaultInstanceProvider
public DefaultInstanceProvider()
-
-
Method Details
-
provide
Description copied from interface:InstanceProvider
Vends an instance of the given class.The instance does not necessarily have to be new for every invocation (for example, implementors might return cached instances).
- Specified by:
provide
in interfaceInstanceProvider
- Type Parameters:
T
- the type of class to instantiate- Parameters:
instanceClass
- type token which represents the class to instantiate- Returns:
- an instance of
T