service orientation and object orientation

Download Service Orientation and Object Orientation

Post on 02-Jun-2018

223 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

  • 8/10/2019 Service Orientation and Object Orientation

    1/27

    Bab 14 Buku 2:Service Orientation and Object

    Orientation: A Comparison ofPrinciples and Concepts

    Oleh: Sularto

    1

  • 8/10/2019 Service Orientation and Object Orientation

    2/27

    Bab 14

    Perbandingan tujuan, prinsip dan konsepobject orientation dan service orientation

    Perbandingan 2 paradigma ini dilakukansemata hanya untuk tujuan pendidikan saja

    Service orientation dapat lebih jelas dipahamioleh orang-orang dengan latar belakangOOAD.

    2

  • 8/10/2019 Service Orientation and Object Orientation

    3/27

    OOAD

    Membangun desain software yang efisien: Reusable Flexible

    Mengatasi masalah pengembangan tidakterstruktur/spaghetti code

    Pemenuhan kebutuhan bisnis saat aplikasiberjalan dan pengembangan di kemudian hari

    3

  • 8/10/2019 Service Orientation and Object Orientation

    4/27

    Service Orientation

    Mempunyai banyak tujuan yang sama denganOOAD

    Desain yang reusable dan flexible Tanggap terhadap perubahan bisnis

    Karena sistem akan sering berubah, seiringdengan perkembangan jaman dan requirement-requirement baru.

    4

  • 8/10/2019 Service Orientation and Object Orientation

    5/27

    14.1 A Tale of Two Design Paradigms

    5

  • 8/10/2019 Service Orientation and Object Orientation

    6/27

    6

  • 8/10/2019 Service Orientation and Object Orientation

    7/27

    14.2 A Comparison of Goals

    7

  • 8/10/2019 Service Orientation and Object Orientation

    8/27

    Increased Business Requirement Fulfillment Increased Robustness

    Increased Extensibility Increased Flexibility Increased Reusability and Productivity

    8

  • 8/10/2019 Service Orientation and Object Orientation

    9/27

    14.3 A Comparison of FundamentalConcepts

    Classes and Objects

    Public access and private implementation details Public information

    9

  • 8/10/2019 Service Orientation and Object Orientation

    10/27

    A Comparison of FundamentalConcepts

    Methods and Attributes

    10

  • 8/10/2019 Service Orientation and Object Orientation

    11/27

    A Comparison of FundamentalConcepts

    Messages

    11

  • 8/10/2019 Service Orientation and Object Orientation

    12/27

    A Comparison of FundamentalConcepts

    Interfaces

    portType element yang terdapat pada WSDLmenunjukkan operasi sebuah web service.

    portType elemen ini mirip dengan interfacedi object oriented.

    Di WSDL versi 2.0 portType berubah namamenjadi interface

    12

  • 8/10/2019 Service Orientation and Object Orientation

    13/27

    14.4 A Comparison of Design Principles

    Encapsulation

    Kedua paradigmafokus padaInformation Hiding

    13

  • 8/10/2019 Service Orientation and Object Orientation

    14/27

    A Comparison of Design Principles

    Inheritance

    Sebuah sub-class

    dapat mewarisimethod dan atributdari super class

    Bisa share kemampuan yang sama,tetapi tidak ada yang diwariskan.

    Terkait dengan service autonomy dan

    mengurangi inter-service coupling inheritanceantar service tidak disarankan dalamservice orientation

    14

  • 8/10/2019 Service Orientation and Object Orientation

    15/27

    A Comparison of Design Principles

    Generalization and Specialization

    15

  • 8/10/2019 Service Orientation and Object Orientation

    16/27

    A Comparison of Design Principles

    Abstractions

    16

  • 8/10/2019 Service Orientation and Object Orientation

    17/27

    A Comparison of Design Principles

    Polymorphism

    17

  • 8/10/2019 Service Orientation and Object Orientation

    18/27

    A Comparison of Design Principles

    Open Closed Principle

    18

  • 8/10/2019 Service Orientation and Object Orientation

    19/27

    A Comparison of Design Principles

    Dont Repeat Yourself

    19

  • 8/10/2019 Service Orientation and Object Orientation

    20/27

    A Comparison of Design Principles

    Single Responsibility Principle

    20

  • 8/10/2019 Service Orientation and Object Orientation

    21/27

    A Comparison of Design Principles

    Delegation

    21

  • 8/10/2019 Service Orientation and Object Orientation

    22/27

    A Comparison of Design Principles

    Association

    22

  • 8/10/2019 Service Orientation and Object Orientation

    23/27

    A Comparison of Design Principles

    Composition

    23

  • 8/10/2019 Service Orientation and Object Orientation

    24/27

    A Comparison of Design Principles

    Agregation

    24

  • 8/10/2019 Service Orientation and Object Orientation

    25/27

    Selesai

    25

  • 8/10/2019 Service Orientation and Object Orientation

    26/27

    \(^0^)/

    26

  • 8/10/2019 Service Orientation and Object Orientation

    27/27

    Guidelines for DesigningService Oriented - Classes

    Implement class interfaces Limit class access to interfaces

    Dont define public attributes in interfaces Use inheritance with care A Comparison of Design Principles

    Use Abstract Classes for Modeling, Not Design Use Faade Classes

    27

Recommended

View more >