net.sf.cglib.proxy
public interface Factory
Enhancer
interface or using reflection. In addition, to intercept methods called during
object construction you must use these methods instead of reflection.Version: $Id: Factory.java,v 1.13 2004/06/24 21:15:20 herbyderby Exp $
Method Summary | |
---|---|
Callback | getCallback(int index)
Return the Callback implementation at the specified index. |
Callback[] | getCallbacks()
Get the current set of callbacks for ths object. |
Object | newInstance(Callback callback)
Creates new instance of the same type, using the no-arg constructor.
|
Object | newInstance(Callback[] callbacks)
Creates new instance of the same type, using the no-arg constructor. |
Object | newInstance(Class[] types, Object[] args, Callback[] callbacks)
Creates a new instance of the same type, using the constructor
matching the given signature. |
void | setCallback(int index, Callback callback)
Set the callback for this object for the given type. |
void | setCallbacks(Callback[] callbacks)
Replace all of the callbacks for this object at once. |
Callback
implementation at the specified index.Parameters: index the callback index
Returns: the callback implementation
Returns: a new array instance
Parameters: callback the new interceptor to use
Returns: new instance of the same type
Parameters: callbacks the new callbacks(s) to use
Returns: new instance of the same type
Parameters: types the constructor argument types args the constructor arguments callbacks the new interceptor(s) to use
Returns: new instance of the same type
Parameters: index the callback index to replace callback the new callback
Parameters: callbacks the new callbacks(s) to use