Just so we're on the same page..please create the JIRA and the format of the 
new ObjectSupplier element to services.xml 
 
Also when the Object Supplier is missing it would seem "The lack of 
ObjectSupplier exception" should be handled better than a stacktrace perhaps 
with an informative user-friendly message
 
Thanks,
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.

  




From: shameerai...@gmail.com
Date: Fri, 26 Apr 2013 00:10:22 +0530
Subject: ObjectSupplier Limited to create object instance with nullary 
Constructor.
To: java-dev@axis.apache.org



Hi devs,


According to my inspection, 


There is no way to create a new instance from a class, which hasn't nullary 
constructor by an ObjectSupplier. see the getObject method declaration. 


Object getObject(Class clazz) throws AxisFault; This is an limitation.


adding anothe abstact method getObject(Class clazz , Class[] parameters , 
Object[] initargs) throw AxisFault; to ObjectSupplier would be the solution. 
DefaultObjectSupplier is the one and only concrete class of this interface.It 
will implement the logic. 


Other than that, If we see the services.xsd there is no way to define custom 
ObjectSuppliers in services.xml but in ServiceBuilder it check for 
ObjectSupplier in sevice discription this alway return null. 




String objectSupplierValue = (String) service
.getParameterValue(TAG_OBJECT_SUPPLIER);



we can define a new element for objectSupplier as last child of  service 
element to fix this.


If everyone ok with this , i will open an issue and proceed with this. 


Thanks,
Shameera.


-- 


Best Regards,Shameera Rathnayaka. 



email: shameera AT apache.org , shameerainfo AT gmail.comBlog : 
http://shameerarathnayaka.blogspot.com/
                                          

Reply via email to