JavaTM Platform
Standard Ed. 6

java.beans.beancontext
인터페이스 BeanContextProxy



public interface BeanContextProxy

이 인터페이스는, BeanContext(Child) 인터페이스 또는 그 서브 인터페이스의 구현에 의해 거기에 관련한 BeanContext(Child)를 직접 갖는다고 할 것은 없지만, 자신으로부터 위양 되고 있는 public BeanContext(Child)를 가지는 JavaBean 에 의해 구현됩니다. 예를 들어, java.awt.Container 의 서브 클래스는, 그 Container 의 모든 아이 Component 가 포함되는 BeanContext 에 관련지을 수가 있습니다.

이 인터페이스와 BeanContextChild 인터페이스는 서로 배타 적이므로, Object 가 2 개의 인터페이스 (또는 그 서브 인터페이스)를 양쪽 모두 동시에 구현할 수 없습니다.

이 인터페이스의 호출측에서는, 다음과 같이, BeanContextChild 의 특정의 서브 인터페이스를 취득하기 위해서 반환값의 형태를 조사합니다. BeanContextChild bcc = o.getBeanContextProxy(); if (bcc instanceof BeanContext) { // ... } 또는 BeanContextChild bcc = o.getBeanContextProxy(); BeanContext bc = null; try { bc = (BeanContext) bcc; } catch (ClassCastException cce) { // cast failed, bcc is not an instanceof BeanContext }

반환값은, 구현측 인스턴스의 수명의 정수입니다.

도입된 버젼:
1.2
관련 항목:
BeanContextChild , BeanContextChildSupport

메소드의 개요
 BeanContextChild getBeanContextProxy ()
          이 객체에 관련한 BeanContextChild (또는 서브 인터페이스)를 가져옵니다.
 

메소드의 상세

getBeanContextProxy

BeanContextChild  getBeanContextProxy()
이 객체에 관련한 BeanContextChild (또는 서브 인터페이스)를 가져옵니다.

반환값:
이 객체에 관련했다 BeanContextChild (또는 서브 인터페이스)

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.