Method parameter names

I'm using jwsdp-2.0 and jdk1.4
my question is
How can i change method parameter names that generated on WSDL file ?
when I'm trying to use (-g) option with javac command i have the same result.

The parameter names aren't included in the bytecode.
Therefor it is impossible to get them.
Not with reflection, not with other tools.
I'm afraid, but you'll have to scan the source.

Similar Messages

  • Getting method parameter names

    Hello everyone,
    I need to get parameter names of class methods. I checked the API for java.lang.reflect.Method, I found that it gives the types but not the names.
    The following should print parameter names but it displays nulls for parameter descriptors. Any idea why ?
    import java.beans.BeanInfo;
    import java.beans.Introspector;
    import java.beans.IntrospectionException;
    import java.beans.MethodDescriptor;
    public class pd
    public static void main( String[] args ) throws IntrospectionException
    BeanInfo info = Introspector.getBeanInfo( javax.swing.JLabel.class,javax.swing.JComponent.class );
    System.out.println("MethodDescriptors:");
    for ( MethodDescriptor md : info.getMethodDescriptors() )
          System.out.println( md.getName() );
          System.out.println("ParameterDescriptors:"+md.getParameterDescriptors());
    }

    Knowing the "true name" of the parameter gives one power over it?
    I suppose one could want to create dynamically generated documentation on arbitrary compiled code, or create some user interface to analyze objects/classes at runtime and call methods directly on them through some generically generated input fields. Perhaps as some sort of learning tool.
    In that case, it would be useful to know the parameter names when there's multiple, particularly of the same type. The names ideally would indicate their use... although you can't always assume that.
    Not that I can offer much help if the reflection classes don't provide for it already.

  • J2SE - Get Method Parameter Names

    Hello Gurus,
    I am trying to make a method in Java showing current running method's parameter name, the result will be some kind like below (showed in arrows):
    FUNCTION1()::BEGIN
    -TIME: 12-Jun-2013 05:39
    FUNCTION1()::PARAMETERS
    -PARAM01: val01 <!-------
    -PARAM02: val02 <!-------
    -PARAM03: val03 <!-------
    FUNCTION1()::ERROR
    -PATH: FUNCTION1()«FUNCTION2()«MAIN()
    -MSG : '/ by zero'
    FUNCTION1()::END
    So I want to retrieve the parameter names and values automatically and dynamically using the function. So far, after googling, information that I get is by using spring framework:
    private ParameterNameDiscoverer parameterNameDiscoverer;
    Method m = ... <!------ what should I put here?
    String[] names = parameterNameDiscoverer.getParameterNames(m).
    In my idea, when we call a function, e.g: public String function1(String str, int i) {} and we put the code inside, we will get the function's parameter names which are "str" and "i", also with their current values.
    Any help?

    Knowing the "true name" of the parameter gives one power over it?
    I suppose one could want to create dynamically generated documentation on arbitrary compiled code, or create some user interface to analyze objects/classes at runtime and call methods directly on them through some generically generated input fields. Perhaps as some sort of learning tool.
    In that case, it would be useful to know the parameter names when there's multiple, particularly of the same type. The names ideally would indicate their use... although you can't always assume that.
    Not that I can offer much help if the reflection classes don't provide for it already.

  • How to retrieve the parameter names from a JSP page ? Urgent Please

    Hello,
    Can anybody tell me how to retrieve the parameter names from the JSP
    page. (without using getParameterNames() method.)
    The problem with the getParameterNames() method is I get the Jumbled output.
    I need it very badly
    With regards
    Ananth R
    email:[email protected]
    [email protected]

    Dear duffymo,
    My primary intention is to convert the JSP form information into a XML file.
    If I do not get the Parameter names in the correct order how can I maintain
    tag order in XML file.
    For ex: (JSP PAGE VIEW)
    Name--
    FirstName
    MiddleName
    LastName
    Address--
    Street1
    Street2
    City
    Country
    &so on
    (XML File to be generated)
    <Name>
    <FirstName>Value</FirstName>
    </Name>
    <Address>
    <street1>value</street1>
    </Address>
    & so on
    If I use getParameterNames() to get all the parameter names(Which form the tag names in the XML file ) the Enumeration object it returns will not be in the same order as the text fields in JSP.From this I can not construct a meaningful XML file.
    order means: Order of entry on the page, from top to bottom
    That's it
    Waiting for your responses

  • After creating  a jar, input parameter names not good

    Hi,
    jdeveloper 11.1.1.3
    project a->create a util_a.jar
    project b->properties/libraries->import util_a.jar
    When I'm in project b and try to use a method of a class , jdeveloper doesn't show me the name of the parameters I wrote when creating that library
    for instance Example.hello(String name)
    In project b, the help popup just show me hello(String)
    It is a problem when generating the jar from jdeveloper, since other external jars (from the Internet) display the parameter names (and in those external jars there is neither javadoc files, nor source code, just classes)
    Where can I configure the creation of a jar file containing the original names of the parameters and not p1, p2, etc)?
    Thanks

    Imagine in the jar:
    public class Message{
    public static void send(String text,String from, String to){...}
    and now, in the other project you have
    Message.send(String p1, String p2,String p3); (in help popup)

  • Nice parameter names generation in web-services.xml

    Hi
    My session bean has explicit parameter names such as:
    public void createCustomer(String name, String address, String telephoneNumber);
    But inside web-services.xml for his operation, 'servicegen' generates parameters
    name 'string, string0, string1'. Composing the xml becomes a tedious job!
    Is there a way to have this file generated automatically but with the original
    parameter names?
    Thanks for the help,
    guy

    Can source2wsdd be applied to an EJB implementation - the doc mentions only Java class-implemented web service - has this been
    fixed or being fixed in the next wls 7 service pack.
    http://edocs.bea.com/wls/docs70/webserv/assemble.html#1056639
    Thanks.
    Darma
    Shridhar Mysore wrote:
    In WLS 7.0.1 onwards, using "source2wsdd" ant task (quo vide http://e-docs.bea.com/wls/docs70/webserv/anttasks.html#1080421)
    you would be able to preserve the parameter names.
    For instance, if you do :
    <source2wsdd
    javaSource="MyService.java"
    ddFile="web-services.xml"
    typesInfo="temp_dir/WEB-INF/classes/types.xml"
    serviceURI="/MyService" >
    <classpath>
    <pathelement path="temp_dir/WEB-INF/classes"/>
    <pathelement path="${java.class.path}"/>
    </classpath>
    </source2wsdd>
    Then, the signature of a method in the backend component,
    public void testMethod( int a, float fval, String name ){
    would get translated mapped inside web-services.xml as :
    - <operation component="MyService" name="testMethod" method="testMethod">
    - <params>
    <param name="a" class-name="int" type="parms:int" style="in" xmlns:parms="http://www.w3.org/2001/XMLSchema"
    location="body" />
    <param name="fval" class-name="float" type="parms:float" style="in" xmlns:parms="http://www.w3.org/2001/XMLSchema"
    location="body" />
    <param name="name" class-name="java.lang.String" type="parms:string" style="in"
    xmlns:parms="http://www.w3.org/2001/XMLSchema" location="body" />
    </params>
    </operation>
    where you would see that the parameter names are being preserved.
    Regards
    Shridhar
    "Guy Deffaux" <[email protected]> wrote:
    Hi
    My session bean has explicit parameter names such as:
    public void createCustomer(String name, String address, String telephoneNumber);
    But inside web-services.xml for his operation, 'servicegen' generates
    parameters
    name 'string, string0, string1'. Composing the xml becomes a tedious
    job!
    Is there a way to have this file generated automatically but with the
    original
    parameter names?
    Thanks for the help,
    guy

  • Constructor Method parameter problem

    I write my class whit this constructor method.
    public Immobile(int id, String complesso, String tipoed,double prezzo) {
    this.id = id;
    this.complesso = complesso;
    this.tipoed =tipoed;
    this.prezzo = prezzo;
    in my app i want to create an object of Immobile class:
    Immobile imm = new Immobile(1,"nuovo",null,2);
    Always is ok
    if I don't want to pass the String parameter I set it whit null.
    But if I don't want to pass an integer like first parameter, or double like prezzo parameter, How can I do this?
    I don't want to use Overloading of method because if the Immobile class have for example 30 parameter, i don't want to write 30 constructor method.
    There is any possibility?

    I think that my design is ok.Two competent developers and me disagree with you.Sign me in here. Every time I get code with methods with more than 4 parameters I shudder.
    A class with 30 constructor parameters is probably a class with 30 fields and more often than not those class fields can be refactored in smaller classes, like ...
    I think that made a class User whit parameter Name,
    Surname, address, telefon, fax is ok
    and i think that a user probably haven't a fax.
    I think that one way can be to use all the parameter
    like String, that accept null, next, casting orsome
    conversion before insert in a database
    What do you think about this?Surname, address, telephone and fax give you 30
    variables? What are you doing, show a small piece of
    relevant code....
    class ContactInfo class for tel, fax, mail, pager.
    class Adress for City, street, country, etc.
    and so on.
    I don't know if BiggDaddy 's sugestion comes in hand in any problem solution but I know that it can very easily come out of hand, I worked on a system where everything was passed down through 2 parameters, that where in fact 2 arrays of parameters.
    The system was a mess, very hard to understand and to test, and bugs popped around in production time.
    May the code be with you.

  • SIGNATURE (parameter names) MISMATCH

    I wrote the procedure to pass a parameter to another procedure  p_sel_crse_search
    PROCEDURE p_enter_term
    IS
    BEGIN
      ---- HTP.p ('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
       HTP.p (
          '<FORM ACTION="/test/bzskfcls.p_sel_crse_search" METHOD="POST" onSubmit="return checkSubmit()">');
       HTP.p (
          '<INPUT TYPE="hidden" NAME="p_sel_crse_search" VALUE="p_sel_crse_search">');
       HTP.p (
          '<TABLE  class="dataentrytable" summary="This layout table is used for term selection."width="50%"><CAPTION class="captiontext">Search by Term: </CAPTION>');
       HTP.p ('<TR>');
       HTP.p (
          '<TD class="dedefault"><LABEL for=term_input_id><SPAN class="fieldlabeltextinvisible">Term</SPAN></LABEL>');
       HTP.p ('<SELECT NAME="p_term" SIZE="1"  ID="term_input_id">');
       HTP.p ('<OPTION VALUE="">None');
       HTP.p ('<OPTION VALUE="201410">Fall 2013');
       HTP.p ('<OPTION VALUE="201320">Spring 2013');
       HTP.p ('</SELECT>');
       HTP.p ('</TD>');
       HTP.p ('</TR>');
       HTP.p ('</TABLE>');
       HTP.p ('<BR>');
       HTP.p ('<BR>');
       HTP.p ('<INPUT TYPE="submit" VALUE="Submit">');
       HTP.p ('<INPUT TYPE="reset" VALUE="Reset">');
       HTP.p ('</FORM>');
    END;
    PROCEDURE p_sel_crse_search(p_term IN stvterm.stvterm_code%type)
       IS
          term_arr   OWA_UTIL.ident_arr;
       BEGIN
         htp.p('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
           ---term_arr (1) := 201320;
            term_arr (1) := p_term;
          -- OBS term_arr(1) := '201320';
          P_CrseSearch_Advanced(term_in => term_arr);
          --P_CrseSearch (term_in => term_arr);
       END p_sel_crse_search;
    I am getting the following error
    Failed to parse target procedure
    bzskfcls.p_sel_crse_search: SIGNATURE (parameter names) MISMATCH
    VARIABLES IN FORM NOT IN PROCEDURE: P_SEL_CRSE_SEARCH
    NON-DEFAULT VARIABLES IN PROCEDURE NOT IN FORM:
      DAD name: test
      PROCEDURE  : bzskfcls.p_sel_crse_search
      URL        : http://dev-ssb-vip.bowdoin.edu:80/test/bzskfcls.p_sel_crse_search
      PARAMETERS :
      ===========
      P_SEL_CRSE_SEARCH:
       p_sel_crse_search
      P_TERM:
       201320
      ENVIRONMENT:
      ============
        PLSQL_GATEWAY=WebDb
        GATEWAY_IVERSION=2
        SERVER_SOFTWARE=Oracle-Application-Server-11g
        GATEWAY_INTERFACE=CGI/1.1
        SERVER_PORT=80
        SERVER_NAME=dev-ssb-vip.bowdoin.edu
        REQUEST_METHOD=POST
        QUERY_STRING=
        PATH_INFO=/bzskfcls.p_sel_crse_search
        SCRIPT_NAME=/test
        REMOTE_HOST=
        REMOTE_ADDR=139.140.238.250
        SERVER_PROTOCOL=HTTP/1.1
        REQUEST_PROTOCOL=HTTP
        REMOTE_USER=www2_user
        ORACLE_SSO_USER=
        OSSO_IDLE_TIMEOUT_EXCEEDED=
        OSSO_USER_GUID=
        HTTP_CONTENT_LENGTH=49
        HTTP_CONTENT_TYPE=application/x-www-form-urlencoded
        HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Win64; x64; Trident/4.0; GTB7.4; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3)
        HTTP_HOST=dev-ssb-vip-test.bowdoin.edu
        HTTP_ACCEPT=application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, */*
        HTTP_ACCEPT_ENCODING=gzip, deflate
        HTTP_ACCEPT_LANGUAGE=en-US
        HTTP_ACCEPT_CHARSET=
        HTTP_COOKIE=SESSID=MEJIRE44MTgyMDQy; __utma=253559834.1105023054.1363618289.1370889203.1370894368.70; __utmz=253559834.1370894368.70.30.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=bopwdoin%20college; IDMSESSID=6FCCE37AD1073BAE58A72D6471FB4ABE; sghe_magellan_username=Mzg1NzQ=; sghe_magellan_locale=en_US
        HTTP_IF_MODIFIED_SINCE=
        HTTP_REFERER=https://dev-ssb-vip-test.bowdoin.edu/test/bzskfcls.p_enter_term
        HTTP_SOAPACTION=
        HTTP_ORACLE_ECID=
        HTTP_ORACLE_CACHE_VERSION=
        HTTP_AUTHORIZATION=
        WEB_AUTHENT_PREFIX=
        DAD_NAME=test
        DOC_ACCESS_PATH=docs
        DOCUMENT_TABLE=wpg_document
        PATH_ALIAS=
        REQUEST_CHARSET=AL32UTF8
        REQUEST_IANA_CHARSET=UTF-8
        SCRIPT_PREFIX=
        HTTP_IF_MATCH=
        HTTP_CACHE_CONTROL=
        SOAP_BODY=
        HTTP_X_ORACLE_DEVICE_CLASS=
        HTTP_X_ORACLE_DEVICE_ORIENTATION=
        HTTP_X_ORACLE_DEVICE_MAXDOCSIZE=
        HTTP_X_ORACLE_DEVICE=
        HTTP_X_ORACLE_ORIG_ACCEPT=
        HTTP_X_ORACLE_ORIG_USER_AGENT=
        HTTP_X_ORACLE_USER_LOCALE=
        HTTP_X_ORACLE_USER_NAME=
        HTTP_X_ORACLE_USER_DISPLAYNAME=
        HTTP_X_ORACLE_USER_USERKIND=
        HTTP_X_ORACLE_USER_AUTHKIND=
        HTTP_X_ORACLE_USER_DEVICEID=
        HTTP_X_ORACLE_USER_LOCATION_ADDRESSLINE1=
        HTTP_X_ORACLE_USER_LOCATION_ADDRESSLINE2=
        HTTP_X_ORACLE_USER_LOCATION_ADDRESSLASTLINE=
        HTTP_X_ORACLE_USER_LOCATION_BLOCK=
        HTTP_X_ORACLE_USER_LOCATION_CITY=
        HTTP_X_ORACLE_USER_LOCATION_COMPANYNAME=
        HTTP_X_ORACLE_USER_LOCATION_COUNTY=
        HTTP_X_ORACLE_USER_LOCATION_STATE=
        HTTP_X_ORACLE_USER_LOCATION_POSTALCODE=
        HTTP_X_ORACLE_USER_LOCATION_POSTALCODEEXT=
        HTTP_X_ORACLE_USER_LOCATION_COUNTRY=
        HTTP_X_ORACLE_USER_LOCATION_TYPE=
        HTTP_X_ORACLE_USER_LOCATION_X=
        HTTP_X_ORACLE_USER_LOCATION_Y=
        HTTP_X_ORACLE_SERVICE_HOME_URL=
        HTTP_X_ORACLE_SERVICE_PARENT_URL=
        HTTP_X_ORACLE_HOME_URL=
        HTTP_X_ORACLE_MODULE_CALLBACK_URL=
        HTTP_X_ORACLE_MODULE_CALLBACK_LABEL=
        HTTP_X_ORACLE_CACHE_USER=
        HTTP_X_ORACLE_CACHE_SUBID=
        HTTP_X_ORACLE_CACHE_AUTH=
        HTTP_X_ORACLE_CACHE_DEVICE=
        HTTP_X_ORACLE_CACHE_LANG=
        HTTP_X_ORACLE_CACHE_ENCRYPT=
        HTTP_X_ORACLE_ASSERT_USER=

    Check if the stvterm.stvterm_code%type is of type varchar2 or number? The parameter p_term value is 201320 which might be coming as varchar2 while the svtterm_code might be a number or vice versa and hence causing the mismatch.
    Rgds
    San

  • How can I get parameter name?

    ODatabase odb("test", "scott", "tiger");
    OParameterCollection params = odb.GetParameters();
    -------> and next how can I get parameter name?
    I hope get stored procedure parameter names and settiing parameter Add just like below.
    Plz tell me how can I get parameter name?
    I'm Korean, and my english is poor. sorry : )
    // add a parameter named 'DEPTNO'
    params.Add("DEPTNO", 20, OPARAMETER_INVAR, OTYPE_NUMBER);
    // add a parameter named 'EMPCURSOR'
    params.Add("EMPCURSOR", "", OPARAMETER_OUTVAR, OTYPE_CURSOR);
    //Execute the SQL statement
    odb.ExecuteSQL("BEGIN Employee.GetEmpData (:DEPTNO, :EMPCURSOR); END;");

    ok, alright. I'm trying to write a program to easily test EJBs with a user giving input and directly seeing the results of function calls to the Bean. The user gives the JNDI name of the EJB, I instantiate the bean, give the user a list of function calls from the bean, and then he/she chooses the function they want to execute and give input of the parameters values they want. Everything is done remotely and at runtime, and the only real problem is that the user only sees "myFunc ( String )" and it would be confusing if there are several parameters of the same type.
    Yes, I do realize there are other ways to test, I was developing this to try a new method that I thought could be beneficial to me.

  • Obtaining parameter names through Reflection

    I'm writing a code generator that creates wsdl files and javascript proxies of java objects through reflection. I've heard that if the java class is compiled in debug mode, there is a way to obtain the parameter names to methods, but I can't figure out how to get them. I don't see anything in the reflection API that would allow that. Is there some other API I need to use to get those values? WSDL files that list parameters as "arg0, arg1, arg2" are not real helpful to users.

    Let us take this source:
    public class a {
    public void doit(int argc,String argv[] ) { }
    }Let us compile it with the -g option. Then let's do strings a.class:
    (I[Ljava/lang/String;)V
    <init>
    Code
    LineNumberTable
    LocalVariableTable
    SourceFile
    [Ljava/lang/String;
    a.java
    argc
    argv
    doit
    java/lang/Object
    thisSo the argument names really appear to be in the class file, but not forcibly available through reflection, but maybe through examining the LineNumberTable and LocalVariableTable parts of the class file.

  • JDI Reading Parameter Names

    I have used reflection to read information about a class, but it does not provide the parameters names of the method arguments. I have read that I need JDI. Does anyone know of a good tutorial or sample code that will read the parameter names of methods and of other public variables in the class file?
    Thanks

    I've seen others for some reason "needing" this kind of "requirement" too. And the answers being that the requirement is ill-conceived, which I agree with.

  • Default method parameter values

    I really, really think that they should incorporate default method parameter values in the next major release.
    It is time-consuming, obstructing and confusing to have methods with 1...n parameters.
    I.e.
    public void doStuff(int id)
        doStuff(id,"",false,Collections.EMPTY_LIST, new Date());
    public void doStuff(int id, String name)
    doStuff(id,name,false,Collections.EMPTY_LIST, new Date());
    public void doStuff(int id, String name, boolean sort)
    doStuff(id,name,sort,Collections.EMPTY_LIST, new Date());
    public void doStuff(int id, String name, boolean sort, List values)
    doStuff(id,name,sort,values, new Date());
    public void doStuff(int id, String name, boolean sort, List values, Date date)
    doStuff(id,name,sort,values, date);
    }Not to mention the amount of JavaDoc-tags it requires.
    Wouldn't it just be simpler, more understandable and easier to have it as:
    public void doStuff(int id, String name : "", boolean sort : false, List values : Collections.EMPTY_LIST, Date date : new Date())
        //Do the stuff here
    }Suggestions?

    I agree that getting default method parameter values implemented will be a good thing.
    If you really have a large number of methods (>5) that usally just add a parameter with a default value, you could introduce a "Parameter Object" that contains the defaults for the parameters. The drawback is of course an extra indirection to get to the parameter.
    class MyParameterClass() {
      String name = "";
      boolean sort = false;
      List values = Collections.EMPTY_LIST;
      Date date = new Date();
    myMethod(String arga, String argb) {
       return myMethod(arga, argb, new MyParameterClass());
    myMethod(String arga, String argb, MyParameterClass params) {
    }arga and argb are there to illustrate you might have parameters you don't have defaults for. (Yes, you could include them in the constructor of MyParameterClass instead.)

  • Descriptive parameter names in WSDL

    I am following the 10.1.3.1 Developer Guide to use annotation in my EJB to create Web Service. I took a look of the WSDL file after I deployed to the Apps Server, and noticed that all my parameter names been replaced by generic names, e.g. String_1, String_2. I tried using @WebParam(name=”myVar”) to workaround, but was unsuccessful.
    Another fact I noticed in the WSDL file is that my overloaded Java method now became “myMethod_0” and “myMethod_1”. Is there a way to have more descriptive parameters names in the WSDL?
    Many Thanks in advance.

    http://216.148.48.100/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.webservices&item=3597
    Shan wrote:
    >
    Hello,
    I am developing a simple web service in WLS 8.1, similar to the webservice example
    basic/javaclass. I am using command line ant tools for this purpose. When I deploy
    the webserivice, I get the WSDL file with following :
    <message name="createRequest">
    <part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:string" name="string"
    />
    <part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:dateTime"
    name="date" />
    <part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:string" name="string0"
    />
    I would like to have the actual parameter names to be displayed instead of 'string',
    'string0', etc...
    I could do this after manually editing the web-services.xml file generated by
    servicegen ant task. However, it is not possible to change parameters manually
    every time the service is regenerated. Is there a solution to get the actual parameter
    names in the WSDL without going through the manual step every time?
    Thanks a lot!
    -Shan

  • The %5BOut%5D gets Stuck to Parameter name in Additional Results

    The in or out tag   from a LV VI  gets  added to the parameter name 
    any method to   remve it

    %5B = [
    [In]
    [Out]

  • Invoking methods by name

    Is it possible (and if so how) to invoke a method using a name stored in a variable?
    private void thisMethod(){
    is normally run by using the method name:
    thisMethod();
    or
    this.thisMethod();
    But if there are a number of methods (method1, method2, method3 say) and the choice of which method to use is derived from some source (in my case as a jsp request parameter), is there some way of saying "run the method whose name is stored in variable methodName"?
    The alternative is of course to use a lot of if ... else if statements, but there are situations where even that does not help very much.
    Clearly what I am asking for is some kind of late binding, which should not be too hard for any language which can implement run time polymorphism, but how?
    Good ideas and information welcome.
    David

    If you know the class then you can use reflection to do the job. You can get the methods names using instance.getClass().getDeclaredMethods(...);
    If the methods have the same interface but differ in implementation then you could create an interface, have a number of classes implement the interface, then scan the classpath for classes that implement the interface.
    there's probably more
    Dave

Maybe you are looking for

  • BC4J app works on OC4J 9.0.2, not on 9.0.3

    I got this error: Error Message: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33001: Cannot find the configuration file eaa\common\bc4j.xcfg in the classpath When I run a default BC4J/JSP application on the OC4J 9.0.3. I d

  • Files put but not translating on site

    I put the files of my website composed of 2 html files (one called index) and 2 swf files (each of the 2 pages has a flash layout. I orginially loaded a bunch of crap onto the site and decided to start new and re-ruoted my site info to this new folde

  • Convert PCL to PDF or PS

    Hi, We have a legacy system that only prints in PCL 5/5e format. We were able to get it to print to a file.Now we need to convert the file into PDF or PS format. Any pointers in where to start will be much appreciated. Thanks

  • Self-defined workspace not remembering every layout detail

    I'm trying to get Dreamweaver CS5.5 to save the following two settings in my self-defined workspace but it doesn't want to do it. 1.     Split the screen between Code and Design views 2.     Split the screen horizontally; not vertically I set these,

  • Adobe EPIC_APP error

    Hi all, I've been using Adobe Acrobat 8 for a while to combine my jpg. files into one pdf. file and it was working fine until a few days ago, where I get this message: Adobe EPIC_APP cannot be launched at this time. You must launch at least one other