Package org.craftercms.commons.lang
Interface Callback<T>
public interface Callback<T>
Represents a general callback that can be used almost in any method that needs this pattern.
- Author:
- avasquez
-
Method Summary
-
Method Details
-
execute
T execute()Executes the callback, returning the result or throwing a runtime exception if an error occurs.- Returns:
- the result of the execution
-