PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

How to Simulate Polymorphic Methods

edited Aug 19, 2014 12:10PM in PeopleTools and Lifecycle Management - PSFT (MOSC) 1 commentAnswered ✓

I would like to be able to do something like the following:

&myCustomClass.CustomMethod(1, 2, 3);

&myCustomClass.CustomMethod(1, 2);

and have PeopleTools route the calls to methods with different signatures, i.e., polymorphism. I know PeopleTools doesn't support this natively. Has anyone come up with a clever way to simulate it? Off the top of my head, I can think of 2, but they're clunky and inelegant

  1. create one method that accepts an array, then have it delegate to sub-methods based on the number/type of elements
  2. write the entire class in Java

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center