The Java Tech Stack for OA Framework








OA Framework is built on the Top of Java. OAF Framework uses both J2SE and J2EE patterns.If you are wondering why OAF is built using Java. Then below is the reason why Java

  • Java is a Object Oriented Language
  • Platform Independent
  • Secure and Robust
  • Open Source
Object-oriented programming allows us to create the highly-sophisticated, distributed,networked applications that are in demand today. And it allows us to do so by implementing 3 common pillars

  • Encapsulation
  • Inheritance
  • Polymorphism. 

Encapsulation

In simple terms encapsulation is wrapping up of data under single unit. Only Members inside the class has the permission to access the variable or methods. Outside members cannot access variable or methods directly without a public method defined inside a class.

For Example take a look of below example.

 class A {
    private int a ;

    public int getA(){
     return a;
   }

   public setA(int seta){
      a= seta;
   }
}

In the above example variable 'a' directly cannot be accessible .It can be accessible only via a public method defined inside a class to set or get data from variable. In OAF most of the standard class are defined in the same way which you will be seeing in next posts.

Inheritance

The ability to extend a class so the new class inherits the behavior and data of its parent while adding its own differentiating characteristics. 

For example take a look of below example

 class A {
    public int a ;

    public setA(int seta){
      a= seta;
   }
}

class B extends class A {

  public setAandDisplay(int a){
         setA(a);
        System.out.println("Value of a "+a);
   }
}

In the above example class A variables and methods can be accessible in the child class B since A is extended in class B. This is one of the most powerful feature in OAF for Extending standard oaf objects.

Polymorphism

Polymorphism in simple terms is called "many forms" , Poly - Many , Morphism - Forms in Greek.Same method can have different forms/ways and will be executed the way method signature is called.

For example take a look of below example
 class A {
   
      void method1(){
         System.out.println("Method 1 from class A ");
     }
}

class B extends class A {

 void method1(){
         System.out.println("Method 1 from class B ");
     }
}

class C extends class B {

 void method1(){
         System.out.println("Method 1 from class C ");
     }
}

Now if method1 is executed from class C. it will display "Method 1 from class C". Same method with same signature is override in class C. So method will lose it originality and will get modified to method defined in class C. This is also of the most powerful feature in OAF for Extending standard oaf objects.

Read these links for more information about J2SE J2EE 

Java code is a portable language which means once java code is compiled into an intermediate bytecode. That bytecode is distributed, and it is the responsibility of an individual JVM (Java Virtual Machine) to run that bytecode. Because JVMs exist for numerous platforms,the bytecode can run on each of those platforms without any programmer intervention.

E-Business Suite uses a framework called OA Framework. OA Framework is a Java framework that excels at creating 3-tier web-based applications that link to an EBusiness Suite instance while maintaining all the security features of that instance. Framework is a specialized set of related classes designed to make application development easier.

No comments