net.sf.cglib
Interface Factory


public interface Factory

All enhanced instances returned by the Enhancer class implement this interface.

Version:
$Id: Factory.java,v 1.9 2003/05/13 06:17:08 herbyderby Exp $
Author:
Juozas Baliuka baliuka@mwm.lt

Method Summary
 MethodInterceptor interceptor()
          Returns the current interceptor in use.
 void interceptor(MethodInterceptor ih)
          Set the current interceptor for this object.
 java.lang.Object newInstance(java.lang.Class[] types, java.lang.Object[] args, MethodInterceptor ih)
          Creates a new instance of the same type, using the constructor matching the given signature.
 java.lang.Object newInstance(MethodInterceptor ih)
          Creates new instance of the same type, using the no-arg constructor.
 

Method Detail

newInstance

java.lang.Object newInstance(MethodInterceptor ih)
Creates new instance of the same type, using the no-arg constructor.

Parameters:
ih - the new interceptor to use
Returns:
new instance

interceptor

MethodInterceptor interceptor()
Returns the current interceptor in use.


newInstance

java.lang.Object newInstance(java.lang.Class[] types,
                             java.lang.Object[] args,
                             MethodInterceptor ih)
Creates a new instance of the same type, using the constructor matching the given signature.

Parameters:
types - the constructor signature
args - the constructor arguments
ih - the new interceptor to use

interceptor

void interceptor(MethodInterceptor ih)
Set the current interceptor for this object.



Copyright (c) 2001 - Apache Software Foundation