org.apache.axis2.jaxws.description
Class MethodRetriever

java.lang.Object
  extended by org.apache.axis2.jaxws.description.MethodRetriever
Direct Known Subclasses:
LegacyMethodRetrieverImpl, PostRI216MethodRetrieverImpl

public abstract class MethodRetriever
extends Object

A MethodRetriever is an abstract class which is meant to be sub-classed for each type of method retrieval behavior. The catalyst for this was the introduction of new spec. interpretation by SUN RI. Please refer to the following links: https://jax-ws.dev.java.net/issues/show_bug.cgi?id=577 http://forums.java.net/jive/thread.jspa?threadID=61630 http://forums.java.net/jive/thread.jspa?threadID=55078 This base is being used to allow for a cleaner componentization of the old/new and potential future behavior changes. The sub-class is required to implement only the abstract 'retrieveMethods'


Constructor Summary
protected MethodRetriever()
           
 
Method Summary
 String getLegacyWebMethod()
           
protected  ArrayList<MethodDescriptionComposite> removeOverriddenMethods(ArrayList<MethodDescriptionComposite> methodList, DescriptionBuilderComposite dbc, EndpointInterfaceDescriptionImpl eid)
          This method will loop through each method that was previously determined as being relevant to the current composite.
abstract  Iterator<MethodDescriptionComposite> retrieveMethods()
           
protected  ArrayList<MethodDescriptionComposite> retrieveSEIMethods(DescriptionBuilderComposite dbc)
           
protected  ArrayList<MethodDescriptionComposite> retrieveSEIMethodsChain(DescriptionBuilderComposite tmpDBC, EndpointInterfaceDescriptionImpl eid)
          A recursive method which peruses and retrieves methods in the super class hierarchy
 void setLegacyWebMethod(String legacyWebMethod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodRetriever

protected MethodRetriever()
Method Detail

getLegacyWebMethod

public String getLegacyWebMethod()

setLegacyWebMethod

public void setLegacyWebMethod(String legacyWebMethod)

retrieveMethods

public abstract Iterator<MethodDescriptionComposite> retrieveMethods()

retrieveSEIMethodsChain

protected ArrayList<MethodDescriptionComposite> retrieveSEIMethodsChain(DescriptionBuilderComposite tmpDBC,
                                                                        EndpointInterfaceDescriptionImpl eid)
A recursive method which peruses and retrieves methods in the super class hierarchy

Parameters:
tmpDBC -
eid -
Returns:

removeOverriddenMethods

protected ArrayList<MethodDescriptionComposite> removeOverriddenMethods(ArrayList<MethodDescriptionComposite> methodList,
                                                                        DescriptionBuilderComposite dbc,
                                                                        EndpointInterfaceDescriptionImpl eid)
This method will loop through each method that was previously determined as being relevant to the current composite. It will then drive the call to determine if this represents a method that has been overridden. If it represents an overriding method declaration it will remove the inherited methods from the list leaving only the most basic method declaration.

Parameters:
methodList - - ArrayList list of relevant methods
dbc - - DescriptionBuilderComposite current composite
Returns:
- ArrayList

retrieveSEIMethods

protected ArrayList<MethodDescriptionComposite> retrieveSEIMethods(DescriptionBuilderComposite dbc)


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.