net.sf.cglib
Class SimpleCallbacks

java.lang.Object
  extended bynet.sf.cglib.SimpleCallbacks
All Implemented Interfaces:
Callbacks

public class SimpleCallbacks
extends java.lang.Object
implements Callbacks

A trivial implementation of the Callbacks interface.


Field Summary
 
Fields inherited from interface net.sf.cglib.Callbacks
DISPATCH, INTERCEPT, JDK_PROXY, LAZY_LOAD, MAX_VALUE, NO_OP
 
Constructor Summary
SimpleCallbacks()
           
 
Method Summary
 Callback get(int type)
          Return the actual Callback implementation for the specified callback type.
 void set(int type, Callback callback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCallbacks

public SimpleCallbacks()
Method Detail

get

public Callback get(int type)
Description copied from interface: Callbacks
Return the actual Callback implementation for the specified callback type.

Specified by:
get in interface Callbacks
Parameters:
type - the callback type
Returns:
the callback implementation

set

public void set(int type,
                Callback callback)


Copyright © 2002-2003 cglib. All Rights Reserved.