|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Providers<T>
This contract provides a means to access runtime component providers.
This is often times produced byContractLocator and ServiceLocator.
| Method Summary | |
|---|---|
java.util.Collection<Provider<T>> |
all()
Return all applicable Providers. |
T |
get()
A shortcut for |
Provider<T> |
getProvider()
Return the "best" Provider from the collection that matches
current criteria. |
| Method Detail |
|---|
java.util.Collection<Provider<T>> all()
Providers. Will always
be a non-null return value.
Provider<T> getProvider()
Provider from the collection that matches
current criteria. If the collection all() is not empty,
this will return a non null value. Otherwise the return value is
null.
T get()
if (getProvider() != null)
return getProvider().get();
return null;
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||