• 제목/요약/키워드: Adapter design pattern

검색결과 4건 처리시간 0.018초

Adapter패턴을 이용한 EJB 컴포넌트 조립 기법 및 응용 (An Approach to Composite Techniques and Application of EJB Component using Adapter Pattern)

  • 정화영
    • 인터넷정보학회논문지
    • /
    • 제4권1호
    • /
    • pp.67-74
    • /
    • 2003
  • 디자인 패턴, 컴포넌트 기반 기법 등의 소프트웨어 개발기법 변화에 따라 웹 서버 시스템 개발 부분에서도 이를 도입하여 다양한 사용자 요구사항에 맞도록 능동적으로 대처하고 있다. 특히, EJB는 서버측 컴포넌트 모델로서 쉽고 다양한 개발지원으로 인하여 많은 연구 및 도입되고 있다. 또한, 컴포넌트 조립기법은 메시지 전달방법에 의한 아키텍처기반의 C2 스타일 아키텍처가 쉽고 효율적인 적용방안으로 많은 관심을 받고 있다. 그러나, 쓰레드를 호출 할 수 없는 EJB컴포넌트의 경우, C2 스타일 아키텍처에 의한 컴포넌트 합성을 위해서는 C2 프레임워크의 수정이 불가피하다. 이를 위해 패턴 중 구조패턴의 하나인 Adapter패턴을 이용한 기법을 제안하고자 한다. 즉, Adapter패턴에 의하여 쓰레드를 호츨할 수 있는 EJB로 변환함으로써 C2 스타일 아키텍처에 의한 컴포넌트 합성이 가능하도록 하였다.

  • PDF

Empirical assessment of design patterns' fault-proneness at different granularity levels

  • Mohammed, Mawal A.;Elish, Mahmoud O.
    • Advances in Computational Design
    • /
    • 제2권4호
    • /
    • pp.293-311
    • /
    • 2017
  • There are several claimed benefits for the impact of design patterns (DPs) on software quality. However, the association between design patterns and fault-proneness has been a controversial issue. In this work, we evaluate the fault-proneness of design patterns at four levels: the design level, category level, pattern level, and role level. We used five subject systems in our empirical study. As a result, we found that, at the design level, the classes that participate in the design patterns are less fault-prone than the non-participant classes. At the category level, we found that the classes that participate in the behavioral and structural categories are less fault-prone than the non-participant classes. In addition, we found that the classes that participate in the structural design patterns are less fault-prone than the classes that participate in the other categories. At the pattern level, we found that only five patterns show significant associations with fault-proneness: builder, factory method, adapter, composite, and decorator. All of these patterns except for builder show that the classes that participate in each one of them are less fault-prone than the non-participant classes in that pattern. The classes that participate in the builder design pattern were more fault-prone than the non-participant classes and the classes that participate in several patterns: the adapter, the composite, and the decorator design patterns. At the role level, the most significant differences were between the classes that participate in some roles and the non-participant classes. Only three pairs of design pattern roles show significant differences. These roles are concrete-product vs. concrete-creator, adapter vs. adaptee, and adapter vs. client. The results recommend the use of design patterns because they are less fault-prone in general except for the builder design pattern, which should be applied with care and addressed with more test cases.

컴포넌트 기반의 레거시프로그램 통합을 위한 Adapter와 Facade 패턴의 적용기법 (Techniques of Adapter and Facade design pattern for synthesis of legacy program in Component Base Development)

  • 이호성
    • 한국정보과학회:학술대회논문집
    • /
    • 한국정보과학회 2005년도 한국컴퓨터종합학술대회 논문집 Vol.32 No.1 (B)
    • /
    • pp.322-324
    • /
    • 2005
  • 컴포넌트기반 개발에 있어서 레거시프로그램의 재활용은 사업 기간과 범위 그리고 효율성이라는 부분에서 상당히 중요한 요소이다. 레거시프로그램을 재활용하기 위해 레거시 프로그램을 Wrapping하는 프로그램이 필요하며, 이를 위한 연구들이 활발히 진행되고 있다. 본 논문에서는 그 중 Adapter 패턴을 분석하여 상속과 위임의 장단점을 제시하고 상속 방식을 이용하는 패턴에 대하여 심층적으로 분석한다. 이를 바탕으로 레거시 프로그램을 통합함에 있어 개별적 Wrapper 구성을 통해 Adapter의 크기를 최소화하고 유지보수에 편리하도록 지역화하며, 단점인 인터페이스의 복잡성을 해결하기 위해 Facade 패턴을 활용하여 문제를 해결하는 방법을 제안한다.

  • PDF

IoT 서비스 확장성을 고려한 컴포넌트 기반의 미들웨어에 관한 연구 (Study on Component-Based Middleware for IoT Service Scalability)

  • 신승혁
    • 한국항행학회논문지
    • /
    • 제19권4호
    • /
    • pp.330-337
    • /
    • 2015
  • 사물인터넷(IoT; internet of things) 환경에서의 서비스는 장비 및 센서들에 의하여 다양한 형태의 서비스로 형성된다. 자동화 설비는 센서에 의하여 동작하는 대표적인 IoT 환경의 서비스로서 센서의 종류에 의하여 다양한 통신 및 프로토콜로 구성이 가능하며, 이러한 다양한 형태의 서비스를 통일된 형태의 IoT 어플리케이션을 구성하기 위해서는 네트워크 및 서비스 구성 효율적인 미들웨어가 필요하다. 본 논문에서는 센서들과 연동하고 제어 및 감시를 목적으로 하는 애플리케이션 개발에 적합한 미들웨어를 설계하였다. 제안된 미들웨어는 소프트웨어 공학의 설계 디자인 패턴중 하나인 어댑터 패턴를 적용하였다. 적용된 디자인 패턴으로 각 센서별 통신 및 서비스 확장성을 확보하였다. 마지막으로 제안된 컴포넌트 미들웨어는 IoT 환경에서의 다양한 센서와 서비스를 쉽게 구성할 수 있음을 확인 할 수 있었다.