com.cedarsoft.provider
Interface ContextualProvider<T,C,E extends Throwable>

Type Parameters:
T - the type that is provided
C - the context
E - the exception that is thrown
All Known Implementing Classes:
AbstractContextualProvider

public interface ContextualProvider<T,C,E extends Throwable>

Represents a provider.

Author:
Johannes Schneider (js@cedarsoft.com)

Method Summary
 String getDescription(C context)
          getDescription
 T provide(C context)
          Provides the object
 

Method Detail

provide

@NotNull
T provide(@NotNull
                  C context)
          throws E extends Throwable
Provides the object

Parameters:
context - the context
Returns:
the object that is provided
Throws:
E - if any.
E extends Throwable

getDescription

@NotNull
String getDescription(@NotNull
                              C context)

getDescription

Parameters:
context - a C object.
Returns:
a String object.


Copyright © 2010 cedarsoft GmbH. All Rights Reserved.