Class DefaultInstanceProvider
java.lang.Object
com.soklet.core.impl.DefaultInstanceProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TVends an instance of the given class.static DefaultInstanceProvider
-
Constructor Details
-
DefaultInstanceProvider
public DefaultInstanceProvider()
-
-
Method Details
-
provide
Description copied from interface:InstanceProviderVends 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:
providein 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