SlideShare ist ein Scribd-Unternehmen logo
1 von 9
Mule Java Custom
Component - 3
GSN-K
Reflection Entry Point Resolver:
• Reflection Entry Point Resolver is used to determine the entry point
of the component.
• Class method invocation happens based on the payload type as the
argument using reflection.
• For multiple parameters, the payload should be an Array of objects.
• If the payload is other than Array type then the respective method which
has same type of argument will be invoked.
• If the message payload is of type Null Payload the resolver will look for a
no-argument method.
• Below sub flow uses java components to implement Reflection Entry Point
Resolver
• Below java class "EntryPointResolver" has three methods with different
argument types.
• multipleArgumentsMethod
• singleArgumentMethod
• noArgumentsMethod(){
• Multiple Arguments method:
Drag an expression component and write code to create Array
(strArray) of two String objects. Store that Array object into payload.
• Drag a java component and refer to a class "EntryPointResolver".
• As the payload is Array of two objects after 'Expression' component,
"multipleArgumentsMethod(String name, String dept)" method of
"EntryPointResolver" Class gets invoked.
Single Argument method:
• Drag a 'Set Payload' component and set value a string value as
"RAM". Drag a java component and refer to a class "EntryPointResolver" as
shown earlier.
• As payload is String type after 'Set payload' component,
"singleArgumentMethod(String name)" method of "EntryPointResolver"
Class gets invoked.
•Thank You All

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Lambda Expressions in Java 8
Lambda Expressions in Java 8Lambda Expressions in Java 8
Lambda Expressions in Java 8
 
C++ - Constructors,Destructors, Operator overloading and Type conversion
C++ - Constructors,Destructors, Operator overloading and Type conversionC++ - Constructors,Destructors, Operator overloading and Type conversion
C++ - Constructors,Destructors, Operator overloading and Type conversion
 
2CPP08 - Overloading and Overriding
2CPP08 - Overloading and Overriding2CPP08 - Overloading and Overriding
2CPP08 - Overloading and Overriding
 
Java 8 lambda
Java 8 lambdaJava 8 lambda
Java 8 lambda
 
2CPP12 - Method Overriding
2CPP12 - Method Overriding2CPP12 - Method Overriding
2CPP12 - Method Overriding
 
Intro To Scala
Intro To ScalaIntro To Scala
Intro To Scala
 
Advanced Javascript
Advanced JavascriptAdvanced Javascript
Advanced Javascript
 
Java 8 - Features Overview
Java 8 - Features OverviewJava 8 - Features Overview
Java 8 - Features Overview
 
Chap2 class,objects
Chap2 class,objectsChap2 class,objects
Chap2 class,objects
 
Books
BooksBooks
Books
 
Java Tutorial Lab 1
Java Tutorial Lab 1Java Tutorial Lab 1
Java Tutorial Lab 1
 
JavaScript Beyond jQuery
JavaScript Beyond jQueryJavaScript Beyond jQuery
JavaScript Beyond jQuery
 
Create and analyse programs
Create and analyse programsCreate and analyse programs
Create and analyse programs
 
java 8 new features
java 8 new features java 8 new features
java 8 new features
 
Final keyword in java
Final keyword in javaFinal keyword in java
Final keyword in java
 
Java static keyword
Java static keywordJava static keyword
Java static keyword
 
Object oriented thinking
Object oriented thinkingObject oriented thinking
Object oriented thinking
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
 
Java8 features
Java8 featuresJava8 features
Java8 features
 
ConsTRUCTION AND DESTRUCTION
ConsTRUCTION AND DESTRUCTIONConsTRUCTION AND DESTRUCTION
ConsTRUCTION AND DESTRUCTION
 

Ähnlich wie Mule java part-3

Ähnlich wie Mule java part-3 (20)

Java
JavaJava
Java
 
Java 102 intro to object-oriented programming in java
Java 102   intro to object-oriented programming in javaJava 102   intro to object-oriented programming in java
Java 102 intro to object-oriented programming in java
 
Java As an OOP Language,Exception Handling & Applets
Java As an OOP Language,Exception Handling & AppletsJava As an OOP Language,Exception Handling & Applets
Java As an OOP Language,Exception Handling & Applets
 
Learning core java
Learning core javaLearning core java
Learning core java
 
Python oop class 1
Python oop   class 1Python oop   class 1
Python oop class 1
 
Lesson3
Lesson3Lesson3
Lesson3
 
Lesson3
Lesson3Lesson3
Lesson3
 
Runtime Tools
Runtime ToolsRuntime Tools
Runtime Tools
 
Object oriented programming in java
Object oriented programming in javaObject oriented programming in java
Object oriented programming in java
 
Advanced oops concept using asp
Advanced oops concept using aspAdvanced oops concept using asp
Advanced oops concept using asp
 
Enumerations in java.pptx
Enumerations in java.pptxEnumerations in java.pptx
Enumerations in java.pptx
 
javaloop understanding what is java.pptx
javaloop understanding what is java.pptxjavaloop understanding what is java.pptx
javaloop understanding what is java.pptx
 
Lecture: Advanced Reflection. MetaLinks
Lecture: Advanced Reflection. MetaLinksLecture: Advanced Reflection. MetaLinks
Lecture: Advanced Reflection. MetaLinks
 
JavaScript.pptx
JavaScript.pptxJavaScript.pptx
JavaScript.pptx
 
Introduction to OOP in Python
Introduction to OOP in PythonIntroduction to OOP in Python
Introduction to OOP in Python
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
class as the basis.pptx
class as the basis.pptxclass as the basis.pptx
class as the basis.pptx
 
U2 JAVA.pptx
U2 JAVA.pptxU2 JAVA.pptx
U2 JAVA.pptx
 
4Unit - 2 The Object Class.pptx
4Unit - 2 The Object Class.pptx4Unit - 2 The Object Class.pptx
4Unit - 2 The Object Class.pptx
 
Java core - Detailed Overview
Java  core - Detailed OverviewJava  core - Detailed Overview
Java core - Detailed Overview
 

Mehr von Karnam Karthik (14)

Https service mule
Https service muleHttps service mule
Https service mule
 
Http mule
Http muleHttp mule
Http mule
 
Routing and filters
Routing and filtersRouting and filters
Routing and filters
 
Mule system properties
Mule system propertiesMule system properties
Mule system properties
 
Mule splitters
Mule splittersMule splitters
Mule splitters
 
Mule properties
Mule propertiesMule properties
Mule properties
 
Mule enricher
Mule enricher Mule enricher
Mule enricher
 
Mule batch
Mule batchMule batch
Mule batch
 
Jms queues
Jms queuesJms queues
Jms queues
 
Jms topics
Jms   topicsJms   topics
Jms topics
 
Mule java part-2
Mule java part-2Mule java part-2
Mule java part-2
 
Mule java part-1
Mule java part-1Mule java part-1
Mule java part-1
 
Mule java part-1
Mule java part-1Mule java part-1
Mule java part-1
 
Mule expression component
Mule expression componentMule expression component
Mule expression component
 

Kürzlich hochgeladen

Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 

Kürzlich hochgeladen (20)

diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
Scopus Indexed Journals 2024 - ISCOPUS Publications
Scopus Indexed Journals 2024 - ISCOPUS PublicationsScopus Indexed Journals 2024 - ISCOPUS Publications
Scopus Indexed Journals 2024 - ISCOPUS Publications
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptx
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 

Mule java part-3

  • 2. Reflection Entry Point Resolver: • Reflection Entry Point Resolver is used to determine the entry point of the component. • Class method invocation happens based on the payload type as the argument using reflection. • For multiple parameters, the payload should be an Array of objects. • If the payload is other than Array type then the respective method which has same type of argument will be invoked. • If the message payload is of type Null Payload the resolver will look for a no-argument method.
  • 3. • Below sub flow uses java components to implement Reflection Entry Point Resolver • Below java class "EntryPointResolver" has three methods with different argument types. • multipleArgumentsMethod • singleArgumentMethod • noArgumentsMethod(){
  • 4.
  • 5. • Multiple Arguments method: Drag an expression component and write code to create Array (strArray) of two String objects. Store that Array object into payload.
  • 6. • Drag a java component and refer to a class "EntryPointResolver".
  • 7. • As the payload is Array of two objects after 'Expression' component, "multipleArgumentsMethod(String name, String dept)" method of "EntryPointResolver" Class gets invoked. Single Argument method: • Drag a 'Set Payload' component and set value a string value as "RAM". Drag a java component and refer to a class "EntryPointResolver" as shown earlier. • As payload is String type after 'Set payload' component, "singleArgumentMethod(String name)" method of "EntryPointResolver" Class gets invoked.
  • 8.