Difference between invoking a method using reflect.proxy and reflect.Method

Could any one tell me the difference between invoking a method using reflection java.lang.reflect.Method and java.lang.reflect.Proxy
using both the class, we can invoke a method at runtime
1)
Method mthd=cl.getMethod("methodName",parameterName);
Integer output=(Integer)mthd.invoke(new RunMthdRef(),input);
2)
Proxy.newProxyInstance(super.getClass().getClassLoader(), new Class[] { adapter }, new SomeClass(this));
Does anybody have any idea?

The two idioms are fundamentally different. Using java.lang.reflect.Method is how we call a method on a class, using Proxy is how we intercept that method call. An exercise for you, to illustrate that they do not do the same thing: write a simple class with one method, then use java.lang.reflect.Method to invoke that method, and then use a Proxy to invoke that method

Similar Messages

  • Difference between invoke and reply

    Just got a question in my mind -
    what is the difference between invoke and reply ?
    I know Invoke activity lets you invoke the operation in the partners WSDL. But what reply do?

    Hi,
    <invoke> : An invoke activity enables you to invoke a service (identified by its partner link) and specify an operation for this service to perform.
    <reply> : Generating a response for synchronous operations. A synchronous process uses a <reply> activity to respond synchronously to the caller.
    To know more about BPEL primitive and structure activities, read the Oracle BPEL Process Manager Developer's Guide.
    Cheers,
    Abhi...

  • Difference between copying cube content using datamarts and direct copying

    Hi Experts,
    I have been going through the SDN for the last 6 months  and this is my first post
    I know two methods of copying the cube content from one cube to another.
    One is data mart method in which we create a datasource based on the cube and
    then create a transformation between the new cube and datasource.
    This method is used if our source cube is in same server or in diff server.
    Other method is directly copying the cube content from source to destination
    by creating a transformation between two cubes .
    this is used if source cube anddestc u be are in same server.
    My  doubt is if both the cubes are in same server then what is diff between first method
    and second method,
    Please clarify me

    Hi,
    Now Iam closing this thread with a conclusion .
    The question is what is the difference between copying cube
    content using datamarts and direct copying
    Also what are there any other methods to copy cube contents
    from one cube to another.
    The  diff bet using data marts and direct copying is
    In case of datamarts,ven if the source cube is changed in futute there is no effect on the target cube.
    In case of copying directly,whenever the source cube is changed,the transformation becomes inactive.
    so we have to activate the transformation again.
    ALso there are some other methods to copy cube contents fron one to other .
    But datamarts is sap standard one.
    Thankyo every one for giving answers
    Regards,
    Sundar

  • Is there any difference between an unlocked Iphone sold in australia and the USA and if i bought one from the USA what would I have to do to use it.

    Is there any difference between an unlocked Iphone sold in australia and the USA and if I bought one from the USA what would I have to do to use it.

    An unlocked phone is an unlocked phone.  It's sold without a SIM card.  You have to get a SIM card from the carrier you want to use, with an account set up, insert the SIM and activate the phone in iTunes.
    Unlocked phones sold by the USA online Apple store can only be shipped to a US address and paid for by a US credit card
    The only difference between an officially unlocked iPhone sold in the US and Australia is the warranty.  The warranty is valid only in the country of sale.  If you buy the phone in the US and return to Australia, if it breaks you have to ship it to a US resident who will get it to Apple and return it to you.  It can't be shipped direct in either direction.

  • How to measure time difference between zero crossing of a sine wave and rise time of a pulse on a same graph?

    I have a 50Hz sine wave and a pulse signal on a same graph. The phase difference between two is between 0-90 degrees.
    Now I need to calculate the time difference between (when the sine wave crosses zero volts) and (when the pulse rises). The frequency will stay approximately same for both signals.
    The application is for a three phase generator. In simple words, when the time difference between the zero-crossing of sine wave and the pulse rises increases, that means that the load on the generator has increases.
    I am a beginner user of LabView (version 9, 2009), maybe it is a very simple problem but I've been pulling my hair out for the last few days and coudln't figure anything out. Any help would be greatly appreciated. I am using DAQ USB-6008 to measure these voltages and pulse from the generator and a sensor
    I have attached a jpg (a graph that i just made with excel to explain). The time 't' is what I am trying to measure
    Cheers
    Awais 
    Message Edited by awais.h on 03-30-2010 11:20 PM
    Message Edited by awais.h on 03-30-2010 11:21 PM
    Solved!
    Go to Solution.

    Hi
    Thanks for the code but I'm afraid it won't work. Like you said the probability of choosing a value that is on both graphs may not happen. This is something that I would like the code to do automatically.
    But I did use the previous code posted and made some modifications to it and it seems to work perfectly. Now the next thing is to be able to get just that one value that tells you the first time difference.
    Here is what I get using that code.
    As you can see from the t Values. I only need the one that is highlighted. If there is a way to filter out the rest it would be great.
    I was thinking of a while loop and as soon as the value is higher than 3E-5 it would store the number and stop the loop, but I'm not too familiar with arrays in labview.
    Here is the the code modified.
    As you can see, it wasn't that big of a modification and it still is your code.
    I will keep trying.
    Thanks for the help
    Attachments:
    FinalShockSpeed.vi ‏55 KB

  • Differences between Oracle Forms 11.1.1.6  and 11.1.2

    Hello !
    Which version should I choose 11.1.2 or 11.1.1.6
    11.1.2 must me the latest one aka 11gR2
    11.1.1.6 must be 11gR1 PS5
    Am i right ?
    but in the forms home page it seems that the 11.1.1.6 is the latest version ??
    Oracle Forms 11.1.1.6 Released
    The latest version of Oracle Forms (11.1.1.6) has been released.
    This can be downloaded from My Oracle Support (MOS)
    23-Feb-2012
    Oracle Forms 11g Release 2 has been released. Read about the new features.
    Oct-2011
    I suppose that in a MiddleWare stack : SOA suite + BI publisher + Forms, the 11.1.1.6 (11gR1 PS5) is the best choice.
    Can somebody explain me the differences between Oracle Forms 11.1.1.6 and 11.1.2 ?
    Thanks
    Regards
    Jean-Yves

    Michael Ferrante (Oracle) wrote:
    There are many new features in 11.1.2.0 that do not exist in 11.1.1. Some of the most significant new features are listed in the 11gR2 New Features documentation found on this page:
    http://www.oracle.com/technetwork/developer-tools/forms
    Additional information about new features and changes can be found in the product documentation for 11gR2, which is here:
    http://docs.oracle.com/cd/E24269_01/index.htm
    One important thing to note is that FMw 11.1.2 (11gR2) does not include Portal or Discover. So if you need either or both of these you will need to stick with 11.1.1.Hi Michael,
    One of the features which is very very important in my point of view is
    Reduced Installation Footprint
    In order to reduce the resource requirements on development machines, you can perform an
    installation specifically tailored for development. This will limit the number of software products
    and servers installed on the machine whilst still allowing a developer to build, run and test their
    Forms application.
    If this feature is only available for the 11.1.2 release then the choice is made !
    Thanks !
    Jean-Yves
    ps : and we don't use any portal or discoverer :-)
    Edited by: JeanYves Bernier on 30 nov. 2012 23:54

  • DIfference Between User Exits, Screen Exits, Menu Exits And BADI

    Could any one let me know the exact/practical dIfference Between User Exits, Screen Exits, Menu Exits And BADI. ? And why BADIs are more proned to use?

    Hi,
    User Exits:
    A user exit is a three character code that instructs the system to access a program during system processing.
    SXX: S is for standard exits that are delivered by SAP.   XX represents the 2-digit exit number.
    UXX: U is for user exits that are defined by the user.  XX represents the 2-digit exit number
    Menu Exits:
    Menu exits add items to the pulldown menus in standard SAP applications. You can use these menu items to call up your own screens or to trigger entire add-on applications.
    SAP creates menu exits by defining special menu items in the Menu Painter. These special entries have function codes that begin with "+" (a plus sign). You specify the menu item’s text when activating the item in an add-on project.
    Screen Exits:
    Screen exits add fields to screens in R/3 applications. SAP creates screen exits by placing special subscreen areas on a standard R/3 screen and calling a customer subscreen from the standard screen’s flow logic.
    BADIs:
    Business Add-Ins are a new SAP enhancement technique based on ABAP Objects. They can be inserted into the SAP System to accommodate user requirements too specific to be included in the standard delivery. Since specific industries often require special functions, SAP allows you to predefine these points in your software. 
    And why BADIs are more proned to use?
    In contrast to above customer exits, Business Add-Ins no longer assume a two-level infrastructure (SAP and customer solutions), but instead allow for a multi-level system landscape (SAP, partner, and customer solutions, as well as country versions, industry solutions, and the like). Definitions and implementations of Business Add-Ins can be created at each level within such a system infrastructure.
    SAP guarantees the upward compatibility of all Business Add-In interfaces. Release upgrades do not affect enhancement calls from within the standard software nor do they affect the validity of call interfaces. You do not have to register Business Add-Ins in SSCR.
    The Business Add-In enhancement technique differentiates between enhancements that can only be implemented once and enhancements that can be used actively by any number of customers at the same time. In addition, Business Add-Ins can be defined according to filter values. This allows you to control add-in implementation and make it dependent on specific criteria (on a specific Country value, for example).
    All ABAP sources, screens, GUIs, and table interfaces created using this enhancement technique are defined in a manner that allows customers to include their own enhancements in the standard. A single Business Add-In contains all of the interfaces necessary to implement a specific task.
    The actual program code is enhanced using ABAP Objects. In order to better understand the programming techniques behind the Business Add-In enhancement concept, SAP recommends reading the section on ABAP Objects.
    Regards,
    Ferry Lianto

  • Differences between Commit work, Logical Unit of Work and Roll back work

    Hi all,
    Can any one explain me in details what is the difference between Commit Work, Logical Unit of Work and Roll back work. Pls explain by providing some example.
    and also explain me where and when these are used and what are the importance of using these.
    Thanks in advance.
    Regards
    Ramana Prasad.T

    Hi Ramana Prasad,
    A Logical Unit of Work (LUW or database transaction) is an inseparable sequence of database operations which must be executed either in its entirety or not at all. For the database system, it thus constitutes a unit.
    LUWs help to guarantee database integrity. When an LUW has been successfully concluded, the database is once again in a correct state. If, however, an error occurs within an LUW, all database changes made since the beginning of the LUW are canceled and the database is then in the same state as before the LUW started.
    An LUW begins
    o each time you start a transaction
    o when the database changes of the previous LUW have been confirmed (database
    commit) or
    o when the database changes of the previous LUW have been cancelled (database rollback)
    An LUW ends
    o when the database changes have been confirmed (database commit) or
    o when the database changes have been canceled (database rollback)
    COMMIT WORK.
    Executes a database commit and thus closes a logical processing unit or Logical Unit of Work ( LUW ) (see also Transaction processing ). This means that
    all database changes are made irrevocable and cannot be reversed with ROLLBACK WORK and
    all database locks are released.
    COMMIT WORK also
    calls the subroutines specified by PERFORM ... ON COMMIT * executes asynchronously any update requests (see CALL FUNCTION ... IN UPDATE TASK ) specified in these subroutines or started just before,
    processes the function modules specified in CALL FUNCTION ... IN BACKGROUND TASK ,
    cancels all existing locks (see SAP locking concept ) if no update requests exist,
    closes all open database cursors (see OPEN CURSOR ) and
    resets the time slice counter to 0.
    COMMIT WORK belongs to the Open SQL command set.
    Return code value
    The SY-SUBRC is set to 0.
    ROLLBACK WORK.
    Closes a logical processing unit by reversing all database changes made since the last COMMIT .
    You use this statement if you cannot be certain that all the database changes have been executed correctly.
    The update routines are not performed.
    ROLLBACK WORK belongs to the Open SQL command set.
    Note
    If the ROLLBACK statement occurs within a SELECT loop, the processing cannot continue because the database cursor is invalid. After the ROLLBACK statement, you should therefore ensure that all SELECT processing has been explicitly terminated.
    <b>Plz. Avoid Duplicate Threads.</b>
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Difference between do-while, do-when, do-until and do-select in app engine.

    Hi can anyone please tell me the difference between do-while, do-when, do-until and do-select in app engine.
    I read the peoplebooks, but i was not able to keep up with that.
    I know like do-while is like WHILE loop in any programming language.
    here my question starts. WHILE has a condition inside the parenthesis and it will check whether that condition is true or not. where do we have that condition in do-while(is it the where conditions inside the do-while)?
    Please clarify me.
    Thank you,
    Bye.

    Hello user609854,
    Do-While
    in simple words it is like, keep doing specified task , up to / when the condition is matching. once this is over, terminate the loop and come out. :)
    If the Do While does not return any rows, the step is complete.
    DoWhen - Select statement that allows subsequent actions to be executed if any rows of data are returned.i.e.when a particular conditions is matched like emplid='A2200' or may be a role based criteria etc
    A Do When statement runs before any other actions in the step. If the Do When statement returns any rows,the next action is executed.
    If the Do When conditions are not met, the remaining actions within that step are
    not executed. Your program executes a Do When action only once when the owning step executes.
    The only property that you can specify for the Do When action is the ReUse Statement property, which applies to all SQL-based actions.
    Do-Until
    Keep performing certain task , every time a particular task is being performed. its like keep doing task B until task A is accomplished.
    A Do Until action is a Select statement that runs after each action when a step completes. Use aDoUntil action if you want the processing actions to execute at least once, and to execute over and over until a certain condition is true, such as until a Select statement returns some rows.You can also use a Do Until action to stop a Do Select action prematurely.
    Do-Select
    a) Select/Fetch : AE performs a Fetch statement for each iteration of the loop to get each row from the Select statement
    b) Re-Select : For each Iteration , opens a cursor and fetches the first row. The cursor is reopen for each iteration. we put certain criteria by which the conditions should not match else this can be a deadlock
    c) Restartable : This is same as ReSelect accept, Restartable flexibility.
    We can restart this select/fetch as AE performs a checkpoint in the middle of the step. SQL in this mode,during restart will recognize where the previous run failed&where to restart processing.
    Please Note: When AE is not set up for restartability, then commits are not controlled, monitored, or restricted by PeopleSoft Application Engine.
    In Do Actions & Do Select we can specify ReUseStatement ~ SQL-based actions.
    Please , let me know if this is fine with you.
    SM Sachdeva

  • Whats the difference between data in customer data management dashbord and customers under sales?

    Hi,
       In the navigator>sales i have a menu customers, there i can see accounts (customers) and contacts, however in the navigator>Customer data management under menu Customer data management dashboard i have organizations and persons. Whats the difference between the information shown in one place and in the other? Why is the information shown with different names in different menus?
    thanks

    Hi, The present project has the requirement to Delete the data from Sales Force objects.Have following set up: 1. Parent Objects2. Child Objects3. Cloud Data Synchronization tasks to delete these objects Parent and Child have LOOKUP relationships between them.Deleing data from Child objects did not give any error. Tried 2 scenarios to delete data from Parent object: Scenario 1: Tried to delete to data from PARENT first before deleting CHILD.                  Result: Failed Scenario 2: Tried to delete to data from PARENT after deleting CHILD.                  Result: Failed Error mesge received in both cases: "Error loading into target [SF_Object] : Error received from salesforce.com. Fields []. Status code [DUPLICATE_COMM_NICKNAME]. Message [Too many records to cascade delete or set null]." Kindly help to resolve this error and suggest a method to delete data from PARENT salesforce objects. Please feel free to ask for more inputs, if required.

  • Difference between Hyperion Financial Reporting version 7.0 and 9.3.1 ?

    Hi All,
    Can you please difine Difference between Hyperion Financial Reporting version 7.0 and 9.3.1 ?

    I migrated from 7.5 to 9.3.1 a couple years back so hopefully this is somewhat helpful.
    From a developer perspective, the report designer itself looks about the same. The most annoying changes for me were that they started migrating functionality AWAY from the client program and to the web. For instance, managing security is a pain as it is done through Workspace and it is a bit clunkly. I also ran into some issues where my old report's security information is not visible in Workspace. It is still 'working', but when you view report properties, it shows nothing for who has assigned security. Also, things like deleting/moving reports and creating folders are done through workspace and not the client program. "Copying" can be done through the client program by using "Save As" functionality.
    There is a migration tool to move your old stuff to 9.3.1. It seemed to work OK; however, the User Interface was a bit screwy. For instance, it said I was 138% complete when it finished. It copied more reports than it showed as existing.... :)
    On the back end, things changed quite a bit. In the older Financial Reports, the report objects existing in a single database table and if you wanted to, you could extract everything from that table. In 9.3.1, part of the information is in Workspace database (i.e. Report names/ID's, security access, hierarchy) and the actual report file itself is stored in a psedo-filesystem under the RM webapp. The names are not user friendly at all and you'll need to XREF from the database to make sense of it. When you finally find the actual report "file", they are compressed/encrypted.
    From an end user perspective, things pretty much work the same way as always.

  • What's the exact difference between "Query Def. Filter Value Selection" and

    Hi Gurus,
    what's the exact difference between "Query Def. Filter Value Selection" and "Query Execution Filter Val. Selectn" in info-object's "Business explorer" tab?
    I found out that if my info-object A has a input-ready variable in a query,after the query running,in  the selection screen,my info-object A's F4 value is follow the setting of "Query Execution Filter Val. Selectn",as the setting of "Query Def. Filter Value Selection" I tried every diff setting, it won't effect my query anyway.
    so:
    1.what's the exact difference between "Query Def. Filter Value Selection" and "Query Execution Filter Val. Selectn" in info-object's "Business explorer" tab?
    2.how they effect query's presentation?
    I searched forum,didn't find the answer what I want.
    Thanks everyone.

    Hi Denny,
    I will try to explain it again.
    Query Def. Filter Value Selection : Let say the value is set to "Only Values in Infoprovider"
    Lets take an example infoobject - 0MATERIAL (Material)
    Total material records in material Master = 1000 (master Data table /BI0/PMATERIAL)
    You create a query on top of an Infoprovider using Material.
    Total unique materials in Infoprovider= 500.
    Now when you are in design mode in Query Designer, and you try to restrict Material by few materials (for e.g. 1, 2, and 3), for this you right click on material and select Restrict, the pop-up opens with list of materials, this list is all those 500 materials which are in the infoprovider, because the setting is  "Only Values in Infoprovider". Which means then when you are trying to restrict a characterstic in query definition the list of values displayed for restricition is derived from Infoprovider.
    Query Execution Filter Value Selection  - I think you already know what it is , its the read mode for F4 help selection.
    I hope this helps.
    Thanks
    CK

  • What's the difference between xcode 4.4 BUILD 4F243 (GM) and 4F250 (final release)?

    So,
    What's the difference between xcode 4.4 BUILD 4F243 (GM) and 4F250 (final release)?
    Is there any necessaries for upgrading my GM VERSION XCODE 4.4 TO final release from MAS?

    From the ios dev forums (I think you may have seen Apple's reply by now):
    "You should use the final release. It fixes some important bugs from the GM seed."

  • Difference between "Data replication", "Data Cloning", "Data duplication" and "Data Migration"

    Hi Gurus,
    Can anyone tell me the difference between "Data replication", "Data Cloning", "Data duplication" and "Data Migration". I have gone through Google but doesn't find any appropriate answer for that where I can find the difference.
    It would be highly appreciated if you give me a link for all and give me some point out.
    Thanks & Regards
    Nimai Karmakar

    Here is how I see the terms used and understood by most folks
    "Data replication"
    This is the keeping the same data in sync in 2 different databases.  Replication is the process of keeping data in sync between 2 environments/databases and not limited to Oracle to Oracle, it could be Oracle to MySQL to be kept in sync, MySQL to Oracle, Oracle to SQL Server, SQL Server to Oracle.  The purpose of keeping data in sync can vary, but that is basic description of what it is.
    "Data Cloning"
    Make a copy of the data/database from one database environment to another, like for example taking production database and cloning the database to a pre-production database/environment for testing.  Coning term is used more when copying a database not just data, but the whole database so typically you hear the reference "Database Cloning", but data cloning is basically the making a copy of the data from one place to another.  Sometimes Cloning and Duplicating are used in the same way by folks as the basic end result is the same you are making a copy of the data to someplace else.
    "Data duplication"
    This is typically term when duplicating the data from one environment to another for a particular purpose, a lot of folks use "Data/Database Cloning" and "Data Duplication" in the same context, meaning they use them to mean the same thing, but I see more difference in the terms so when they are different Data Duplication is done when combining 2 databases to 1 therefore you can not clone the 2 databases into one so this term would be used more in those circumstances.
    "Data Migration"
    Moving data from one location/database to another location database, for example moving from MySQL to Oracle you would do a data migration from MySQL to Oracle as you are moving the data from MySQL to Oracle and going to leave it in Oracle.  You could also be migrating to from Oracle 10g environment to a new Oracle 11g environment, therefore "Migration" is typically used when referring to moving the data from one environment to another and the source and target are different in location, database vendor, database version.
    These are very simple ways of looking at the terms from my experience on how they are used.

  • What is the difference between the passcode on my iPhone 5 and a password?  I am locked out of my phone.

    What is the difference between the passcode on my iPhone 5 and a password?  I am locked out of my phone.

    Not entirely sure what you are asking, but a passcode to unlock an iOS device is normally 4 digits long (so is a 4 digit code), though you can make it alphanumeric and longer (so effectively becomes a password).
    If you don't know the passcode to unlock your phone or it's showing the disabled screen then there are instructions on this page for how to reset a device : http://support.apple.com/kb/HT1212 - you should then be able to restore/resync your content to it.

Maybe you are looking for

  • In aperture, how can I add text on my picture

    In aperture, I want to add text ,or a messages to  a picture, How can I do this?

  • Hyperlinks not converting from Word to PDF

    I've read the other discussions regarding this topic & the solutions don't seem to work for me. I'm using Word '07 converting to Acrobat 8. Some of my hyperlinks will convert but not all. AND, one hyperlink is linking wrong in Acrobat even though it'

  • Help!!! i cant connect my ps4 controller to my ps4 pllsss help!!

    Turn off the PlayStation 4 by pressing the power button on the front panel. The power indicator will blink for a few moments before turning off.Once the PlayStation 4 is off, press and hold the power button. Release it after you've heard two beeps: o

  • 8D report upload in QM Notification (QM01)

    Please let me know how to upload 8d or Corrective action documents in Notification using DMS. Please guide me, we are having DMS functionality. Do we need to create Document info record and how to assign/upload related document every time I create a

  • After upgrading to Acrobat X Pro, having problems editing text

    I just upgraded to Acrobat X Pro from Acrobat 8 Professional. I've opened a document (created in Acrobat 8) and when I try to edit the text, it all seems fine until I try to save it. Then the formatting goes awry. The spacing between paragraphs disap