com.cedarsoft.provider
Interface ContextualProvider<T,C,E extends java.lang.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 java.lang.Throwable>

Represents a provider.


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

Method Detail

provide

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

Parameters:
context - the context
Returns:
the object that is provided
Throws:
E extends java.lang.Throwable

getDescription

@NotNull
java.lang.String getDescription(@NotNull
                                        C context)


Copyright © 2009 cedarsoft GmbH. All Rights Reserved.