org.apache.fulcrum.yaafi.framework.interceptor
Class AvalonInterceptorFactory

java.lang.Object
  extended by org.apache.fulcrum.yaafi.framework.interceptor.AvalonInterceptorFactory

public class AvalonInterceptorFactory
extends java.lang.Object

A factory for creating dynamic proxies for Avalon services.

Author:
Siegfried Goeschl

Constructor Summary
AvalonInterceptorFactory()
           
 
Method Summary
static java.lang.Object create(java.lang.String serviceName, java.lang.String serviceShorthand, org.apache.avalon.framework.service.ServiceManager serviceManager, java.lang.String[] serviceInterceptorList, java.lang.Object serviceDelegate, ReadWriteLock readWriteLock)
          Creates a dynamic proxy wrapping a service instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvalonInterceptorFactory

public AvalonInterceptorFactory()
Method Detail

create

public static java.lang.Object create(java.lang.String serviceName,
                                      java.lang.String serviceShorthand,
                                      org.apache.avalon.framework.service.ServiceManager serviceManager,
                                      java.lang.String[] serviceInterceptorList,
                                      java.lang.Object serviceDelegate,
                                      ReadWriteLock readWriteLock)
                               throws org.apache.avalon.framework.service.ServiceException
Creates a dynamic proxy wrapping a service instance.

Parameters:
serviceName - the name of the service
serviceShorthand - the shorthand of the service being intercepted
serviceManager - the corresponding service manager
serviceInterceptorList - the list of interceptors to be installed
serviceDelegate - the service implementation
readWriteLock - the YAAFI kernel lock
Returns:
a dynamic proxy
Throws:
org.apache.avalon.framework.service.ServiceException - an interceptor was not found


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.