Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 769 Bytes

File metadata and controls

22 lines (16 loc) · 769 Bytes
layout pattern
title Callback
folder callback
permalink /patterns/callback/
categories Other
tags Java

Intent: Callback is a piece of executable code that is passed as an argument to other code, which is expected to call back (execute) the argument at some convenient time.

alt text

Applicability: Use the Callback pattern when

  • when some arbitrary synchronous or asynchronous action must be performed after execution of some defined activity.

Real world examples: