org.apache.beehive.controls.api.bean
Interface Extensible


public interface Extensible

The Extensible interface is implemented by a Java Control implementation class if the control defines an extensibility model that allows extended operations to be declared using a JCX interface.

The interface provides the invoke method, that is called whenever an extended operation is called by the client at run time.


Method Summary
 Object invoke(Method method, Object[] args)
          Called by the Controls runtime to handle calls to methods of an extensible control.
 

Method Detail

invoke

Object invoke(Method method,
              Object[] args)
              throws Throwable
Called by the Controls runtime to handle calls to methods of an extensible control.

Parameters:
method - The extended operation that was called.
args - Parameters of the operation.
Returns:
The value that should be returned by the operation.
Throws:
Throwable - any exception declared on the extended operation may be thrown. If a checked exception is thrown from the implementation that is not declared on the original interface, it will be wrapped in a ControlException.