org.overlord.sramp.shell.api
Interface ShellContextVariableLifecycleHandler


public interface ShellContextVariableLifecycleHandler

Lifecycle handler for a shell context variable.

Author:
eric.wittmann@redhat.com

Method Summary
 boolean onAdd(Object object)
          Called before the object is added to the context.
 void onContextDestroyed(Object object)
          Called when the shell context is destroyed.
 void onRemove(Object object)
          Called after the object has been removed from the context.
 

Method Detail

onAdd

boolean onAdd(Object object)
Called before the object is added to the context.

Parameters:
object -
Returns:
boolean true if the object should be added, false to reject

onRemove

void onRemove(Object object)
Called after the object has been removed from the context.

Parameters:
object -

onContextDestroyed

void onContextDestroyed(Object object)
Called when the shell context is destroyed.

Parameters:
object -


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.