Hi,

In Axis2 (v 1.6.1.) I could see
org.apache.axis2.jaxws.message.factory.ClassFinderFactory provides setter
method for using org.apache.axis2.jaxws.message.databinding.ClassFinder
implementation. 

This ClassFinderFactory get registered in FactoryRegistry when
org.apache.axis2.jaxws.registry.FactoryRegistry is initialized. See
following line in FactoryRegistry -

table.put(ClassFinderFactory.class, new ClassFinderFactory());

Is there a way, through configuration or through some kind of interceptor,
where I can register my own version of ClassFinderFactory (which inturn uses
my custom ClassFinder) ?

PS: While searching for this topic, I came acorss
org.apache.geronimo.axis2.Axis2SystemInitializer class (I guess which is
specific to geronimo), it has following piece of code, which is kind of
similar to what I am looking for but don't know how to do it in generic way
-

Code pasted from org.apache.geronimo.axis2.Axis2SystemInitializer

*******
public void doStart() throws Exception {
        packageAdminServiceReference =
bundleContext.getServiceReference(PackageAdmin.class.getName());
        PackageAdmin packageAdmin = (PackageAdmin)
bundleContext.getService(packageAdminServiceReference);
        ClassFinderFactory classFinderFactory = (ClassFinderFactory)
FactoryRegistry.getFactory(ClassFinderFactory.class);
        bundleClassFinder = new GeronimoBundleClassFinder(packageAdmin);
        classFinderFactory.setClassFinder(bundleClassFinder);
        bundleContext.addBundleListener(bundleClassFinder);
    }
*******

Thanks.

Vinay Sarwate
-- 
View this message in context: 
http://old.nabble.com/How-to-register-your-custom-ClassFinder-ClassFinderFactory-in-Axis2-1.6.1-tp32901695p32901695.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to