com.xenonsoft.bridgetown.soa.spi
Interface IProxyBeanBuilder

All Known Subinterfaces:
IAOPWeaverProxyBeanBuilder

public interface IProxyBeanBuilder

This is a contract for a concreate class that actually creates the service bean and a proxy bean. This interface allows an assembly factory to delegate the responsibility of object creation to a generic builder, for example a builder could be an Aspect Oriented or Chain of Responsibility Interception module.

Version:
$Id: IProxyBeanBuilder.java,v 1.1 2004/09/22 02:22:16 peter_pilgrim Exp $
Author:
Peter Pilgrim , Sep 16, 2004 18:39:33 AM

Method Summary
 java.lang.Object newProxyInstance(IServiceAssembler serviceAssembler, ServiceConfig serviceConfig, java.lang.Class[] interfaceClassList, java.lang.Class clazz)
          Creates an enhanced proxy instance of the said service bean class
 java.lang.Object newProxyInstance(IServiceAssembler serviceAssembler, ServiceConfig serviceConfig, java.lang.Class[] interfaceClassList, java.lang.Class clazz, java.lang.Object[] args, java.lang.Class[] argTypes)
          Creates an proxy instance of the said service bean class
 

Method Detail

newProxyInstance

public java.lang.Object newProxyInstance(IServiceAssembler serviceAssembler,
                                         ServiceConfig serviceConfig,
                                         java.lang.Class[] interfaceClassList,
                                         java.lang.Class clazz,
                                         java.lang.Object[] args,
                                         java.lang.Class[] argTypes)
                                  throws java.lang.ClassNotFoundException,
                                         java.lang.IllegalAccessException,
                                         java.lang.reflect.InvocationTargetException,
                                         java.lang.InstantiationException,
                                         java.lang.NoSuchMethodException
Creates an proxy instance of the said service bean class

Parameters:
serviceAssembler - the service assembler which requires the new proxy object
serviceConfig - the service configuration
interfaceClassList - the required classes that the proxy bean must implement
clazz - the service bean class
args - the argument list
argTypes - the Java types that make up the individual elements in the argument list
Returns:
the service bean
Throws:
java.lang.ClassNotFoundException - if the class cannot be found
java.lang.IllegalAccessException - if the access to the class and/or proxy are illegal in Java
java.lang.reflect.InvocationTargetException - if there is problem actually invoking a constructor or method
java.lang.InstantiationException - if the bean cannot be created
java.lang.NoSuchMethodException - if the class method or constructor does not exist

newProxyInstance

public java.lang.Object newProxyInstance(IServiceAssembler serviceAssembler,
                                         ServiceConfig serviceConfig,
                                         java.lang.Class[] interfaceClassList,
                                         java.lang.Class clazz)
                                  throws java.lang.ClassNotFoundException,
                                         java.lang.IllegalAccessException,
                                         java.lang.reflect.InvocationTargetException,
                                         java.lang.InstantiationException,
                                         java.lang.NoSuchMethodException
Creates an enhanced proxy instance of the said service bean class

Parameters:
serviceAssembler - the service assembler which requires the new proxy object
serviceConfig - the service configuration
interfaceClassList - the required classes that the proxy bean must implement
clazz - the service bean class
Returns:
the service bean
Throws:
java.lang.ClassNotFoundException - if the class cannot be found
java.lang.IllegalAccessException - if the access to the class and/or proxy are illegal in Java
java.lang.reflect.InvocationTargetException - if there is problem actually invoking a constructor or method
java.lang.InstantiationException - if the bean cannot be created
java.lang.NoSuchMethodException - if the class method or constructor does not exist


Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.