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

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

public interface Provider<T,E extends Throwable>

Represents a provider.

Author:
Johannes Schneider (js@cedarsoft.com)

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

Method Detail

provide

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

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

getDescription

@NotNull
@NonNls
String getDescription()

getDescription

Returns:
a String object.


Copyright © 2010 cedarsoft GmbH. All Rights Reserved.