|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
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 }
반환값은, 구현측 인스턴스의 수명의 정수입니다.
BeanContextChild
,
BeanContextChildSupport
메소드의 개요 | |
---|---|
BeanContextChild |
getBeanContextProxy ()
이 객체에 관련한 BeanContextChild (또는 서브 인터페이스)를 가져옵니다. |
메소드의 상세 |
---|
BeanContextChild getBeanContextProxy()
BeanContextChild
(또는 서브 인터페이스)를 가져옵니다.
BeanContextChild
(또는 서브 인터페이스)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.