public abstract class ComponentProvider extends Object
isApplicable(Class) is called first to check whether the provider is able to provide the given Class.
Method provideInstance(Class) is called to get the instance.| Constructor and Description |
|---|
ComponentProvider() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
isApplicable(Class<?> c)
Checks whether this component provider is able to provide an instance of given
Class. |
abstract <T> T |
provideInstance(Class<T> c)
Create new instance.
|
public abstract boolean isApplicable(Class<?> c)
Class.c - Class to be checked.true iff this ComponentProvider is able to create an instance of the given Class.Copyright © 2012-2013. All Rights Reserved.