From 6c16b86a6a68fc7063ea5a8f206d495cb6a36e0f Mon Sep 17 00:00:00 2001 From: acolyer Date: Wed, 18 Jan 2006 14:37:02 +0000 Subject: an additional interface that custom message handlers may choose to implement. Implementors get callbacks when a build is starting and when a build has finished (allowing them to perform before and after build processing, like closing output files etc..). --- bridge/src/org/aspectj/bridge/ILifecycleAware.java | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 bridge/src/org/aspectj/bridge/ILifecycleAware.java (limited to 'bridge/src') diff --git a/bridge/src/org/aspectj/bridge/ILifecycleAware.java b/bridge/src/org/aspectj/bridge/ILifecycleAware.java new file mode 100644 index 000000000..c5ac9b149 --- /dev/null +++ b/bridge/src/org/aspectj/bridge/ILifecycleAware.java @@ -0,0 +1,35 @@ +/* ******************************************************************* + * Copyright (c) 2006 Contributors. + * All rights reserved. + * This program and the accompanying materials are made available + * under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution and is available at + * http://eclipse.org/legal/epl-v10.html + * + * Contributors: + * Adrian Colyer Initial implementation + * ******************************************************************/ +package org.aspectj.bridge; + +/** + * Interface that can be implemented by MessageHandlers that need to + * perform some additional processing when a build is starting and + * when it has finished. + * + * @author Adrian Colyer + * @since 1.5.1 + */ +public interface ILifecycleAware { + + /** + * called when a build starts + */ + void buildStarting(boolean isIncremental); + + /** + * called when a batch build finishes + * + */ + void buildFinished(boolean wasIncremental); + +} -- cgit v1.2.3