JavaTM Platform
Standard Ed. 6

java.beans.beancontext
클래스 BeanContextChildSupport

java.lang.Object 
  상위를 확장 java.beans.beancontext.BeanContextChildSupport
모든 구현된 인터페이스:
BeanContextChild , BeanContextServiceRevokedListener , BeanContextServicesListener , Serializable , EventListener
직계의 기존의 서브 클래스:
BeanContextSupport


public class BeanContextChildSupport
extends Object
implements BeanContextChild , BeanContextServicesListener , Serializable

BeanContextChild 프로토콜의 구현을 지원하기 위한 일반적인 지원 클래스입니다. 이 클래스는, 직접 서브 클래스화 되든가, 혹은 캡슐화되어 위양 되는 것으로, 지정된 컴퍼넌트용으로서 이 인터페이스를 구현합니다.

도입된 버젼:
1.2
관련 항목:
BeanContext , BeanContextServices , BeanContextChild , 직렬화 된 형식

필드의 개요
protected  BeanContext beanContext
           
 BeanContextChild beanContextChildPeer
          이 BeanContextChild 가 상자가 되는 BeanContext 입니다.
protected  PropertyChangeSupport pcSupport
          이 BeanContextChildSupport 에 관련한 PropertyChangeSupport 입니다.
protected  boolean rejectedSetBCOnce
          setBeanContext 조작에 대해서 throw 된 PropertyChangeVetoException 가 적어도 1 개 있는 것을 나타내는 플래그입니다.
protected  VetoableChangeSupport vcSupport
          이 BeanContextChildSupport 에 관련한 VetoableChangeSupport 입니다.
 
생성자 의 개요
BeanContextChildSupport ()
          JavaBean 컴퍼넌트 자체를 구현하기 위해서, 이 클래스의 서브 클래스화를 한 BeanContextChildSupport 를 구축합니다.
BeanContextChildSupport (BeanContextChild  bcc)
          JavaBean 컴퍼넌트 자체가 BeanContextChild 를 구현해, 이것을 캡슐화하고 있는 BeanContextChildSupport 를 구축합니다.
 
메소드의 개요
 void addPropertyChangeListener (String  name, PropertyChangeListener  pcl)
          특정의 프로퍼티의 PropertyChangeListener 를 추가합니다.
 void addVetoableChangeListener (String  name, VetoableChangeListener  vcl)
          특정의 프로퍼티의 VetoableChangeListener 를 추가합니다.
 void firePropertyChange (String  name, Object  oldValue, Object  newValue)
          등록되어 모든 청취자에게 바운드 프로퍼티의 갱신을 통지합니다.
 void fireVetoableChange (String  name, Object  oldValue, Object  newValue)
          등록되어 모든 청취자에게 거부 가능 프로퍼티의 갱신을 통지합니다.
 BeanContext getBeanContext ()
          이 BeanContextChildSupportBeanContext 를 가져옵니다.
 BeanContextChild getBeanContextChildPeer ()
          이 BeanContextChildSupport 에 관련한 BeanContextChild 를 가져옵니다.
protected  void initializeBeanContextResources ()
          이 메소드는, 독자적인 초기화 동작을 제공하기 위해서 서브 클래스에 의해 오버라이드(override) 되는 일이 있습니다.
 boolean isDelegated ()
          이 클래스가 다른 클래스의 위양일지 어떨지를 보고합니다.
protected  void releaseBeanContextResources ()
          이 메소드는, 독자적인 해제 동작을 제공하기 위해서 서브 클래스에 의해 오버라이드(override) 되는 일이 있습니다.
 void removePropertyChangeListener (String  name, PropertyChangeListener  pcl)
          특정의 프로퍼티의 PropertyChangeListener 를 삭제합니다.
 void removeVetoableChangeListener (String  name, VetoableChangeListener  vcl)
          VetoableChangeListener 를 삭제합니다.
 void serviceAvailable (BeanContextServiceAvailableEvent  bcsae)
          상자가 되어 있는 BeanContext 로부터 새로운 서비스를 사용할 수 있습니다.
 void serviceRevoked (BeanContextServiceRevokedEvent  bcsre)
          상자가 되어 있는 BeanContext 에 의해 제공되는 서비스가 무효가 되어 있습니다.
 void setBeanContext (BeanContext  bc)
          이 BeanContextChildSupportBeanContext 를 설정합니다.
 boolean validatePendingSetBeanContext (BeanContext  newValue)
          상자가 되어 있는 BeanContext 프로퍼티치의 보류중의 변경을 검증하는 등의 목적으로 setBeanContext 로부터 불려 갑니다.
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

필드의 상세

beanContextChildPeer

public BeanContextChild  beanContextChildPeer
BeanContextChild 가 상자가 되는 BeanContext 입니다.


pcSupport

protected PropertyChangeSupport  pcSupport
BeanContextChildSupport 에 관련한 PropertyChangeSupport 입니다.


vcSupport

protected VetoableChangeSupport  vcSupport
BeanContextChildSupport 에 관련한 VetoableChangeSupport 입니다.


beanContext

protected transient BeanContext  beanContext

rejectedSetBCOnce

protected transient boolean rejectedSetBCOnce
setBeanContext 조작에 대해서 throw 된 PropertyChangeVetoException 가 적어도 1 개 있는 것을 나타내는 플래그입니다.

생성자 의 상세

BeanContextChildSupport

public BeanContextChildSupport()
JavaBean 컴퍼넌트 자체를 구현하기 위해서, 이 클래스의 서브 클래스화를 한 BeanContextChildSupport 를 구축합니다.


BeanContextChildSupport

public BeanContextChildSupport(BeanContextChild  bcc)
JavaBean 컴퍼넌트 자체가 BeanContextChild 를 구현해, 이것을 캡슐화하고 있는 BeanContextChildSupport 를 구축합니다. BeanContextChild 인터페이스는 이 구현에 위양 됩니다.

메소드의 상세

setBeanContext

public void setBeanContext(BeanContext  bc)
                    throws PropertyVetoException 
BeanContextChildSupportBeanContext 를 설정합니다.

정의:
인터페이스 BeanContextChild 내의 setBeanContext
파라미터:
bc - BeanContext 프로퍼티에 할당한다 새로운 값
예외:
PropertyVetoException - 변경이 거부되었을 경우
PropertyVetoException

getBeanContext

public BeanContext  getBeanContext()
BeanContextChildSupportBeanContext 를 가져옵니다.

정의:
인터페이스 BeanContextChild 내의 getBeanContext
반환값:
BeanContextChildSupport 의 상자가 되어 있는 BeanContext

addPropertyChangeListener

public void addPropertyChangeListener(String  name,
                                      PropertyChangeListener  pcl)
특정의 프로퍼티의 PropertyChangeListener 를 추가합니다. 같은 청취자 객체를 여러 차례 추가할 수 있습니다. 각 프로퍼티에서는, 청취자가 그 프로퍼티에 추가된 회수만 청취자가 불려 갑니다. name 또는 pcl 가 null 의 경우는, 예외는 throw 되지 않고, 아무것도 처리는 행해지지 않습니다.

정의:
인터페이스 BeanContextChild 내의 addPropertyChangeListener
파라미터:
name - 대기하고 있는 프로퍼티의 이름
pcl - 추가하는 PropertyChangeListener

removePropertyChangeListener

public void removePropertyChangeListener(String  name,
                                         PropertyChangeListener  pcl)
특정의 프로퍼티의 PropertyChangeListener 를 삭제합니다. 지정한 프로퍼티의 같은 이벤트 소스에 pcl 가 2 회 이상 추가되었을 경우는, 삭제된 뒤에, 추가된 회수보다 1 회 적은 통지를 합니다. name 가 null 의 경우는, 예외는 throw 되지 않고, 아무것도 처리는 행해지지 않습니다. pcl 가 null 의 경우, 또는 지정된 프로퍼티에 추가되지 않았던 경우는, 예외는 throw 되지 않고, 아무것도 처리는 행해지지 않습니다.

정의:
인터페이스 BeanContextChild 내의 removePropertyChangeListener
파라미터:
name - 대기하고 있던 프로퍼티의 이름
pcl - 삭제하는 PropertyChangeListener

addVetoableChangeListener

public void addVetoableChangeListener(String  name,
                                      VetoableChangeListener  vcl)
특정의 프로퍼티의 VetoableChangeListener 를 추가합니다. 같은 청취자 객체를 여러 차례 추가할 수 있습니다. 각 프로퍼티에서는, 청취자가 그 프로퍼티에 추가된 회수만 청취자가 불려 갑니다. name 또는 vcl 가 null 의 경우는, 예외는 throw 되지 않고, 아무것도 처리는 행해지지 않습니다.

정의:
인터페이스 BeanContextChild 내의 addVetoableChangeListener
파라미터:
name - 대기하고 있는 프로퍼티의 이름
vcl - 추가되는 VetoableChangeListener

removeVetoableChangeListener

public void removeVetoableChangeListener(String  name,
                                         VetoableChangeListener  vcl)
VetoableChangeListener 를 삭제합니다. 지정한 프로퍼티의 같은 이벤트 소스에 pcl 가 2 회 이상 추가되었을 경우는, 삭제된 뒤에, 추가된 회수보다 1 회 적은 통지를 합니다. name 가 null 의 경우는, 예외는 throw 되지 않고, 아무것도 처리는 행해지지 않습니다. vcl 가 null 의 경우, 또는 지정된 프로퍼티에 추가되지 않았던 경우는, 예외는 throw 되지 않고, 아무것도 처리는 행해지지 않습니다.

정의:
인터페이스 BeanContextChild 내의 removeVetoableChangeListener
파라미터:
name - 대기하고 있던 프로퍼티의 이름
vcl - 삭제되는 VetoableChangeListener

serviceRevoked

public void serviceRevoked(BeanContextServiceRevokedEvent  bcsre)
상자가 되어 있는 BeanContext 에 의해 제공되는 서비스가 무효가 되어 있습니다. 서브 클래스는, 독자적인 동작을 구현하기 위해서 이 메소드를 오버라이드(override) 할 수 있습니다.

정의:
인터페이스 BeanContextServiceRevokedListener 내의 serviceRevoked
파라미터:
bcsre - 서비스의 취소에 의해 트리거되었다 BeanContextServiceRevokedEvent

serviceAvailable

public void serviceAvailable(BeanContextServiceAvailableEvent  bcsae)
상자가 되어 있는 BeanContext 로부터 새로운 서비스를 사용할 수 있습니다. 서브 클래스는, 독자적인 동작을 구현하기 위해서 이 메소드를 오버라이드(override) 할 수 있습니다.

정의:
인터페이스 BeanContextServicesListener 내의 serviceAvailable
파라미터:
bcsae - 서비스가 사용 가능하게 되었기 때문에 트리거되었다 BeanContextServiceAvailableEvent

getBeanContextChildPeer

public BeanContextChild  getBeanContextChildPeer()
BeanContextChildSupport 에 관련한 BeanContextChild 를 가져옵니다.

반환값:
이 클래스의 BeanContextChild 의 피어

isDelegated

public boolean isDelegated()
이 클래스가 다른 클래스의 위양일지 어떨지를 보고합니다.

반환값:
이 클래스가 다른 클래스의 위양인 경우는 true

firePropertyChange

public void firePropertyChange(String  name,
                               Object  oldValue,
                               Object  newValue)
등록되어 모든 청취자에게 바운드 프로퍼티의 갱신을 통지합니다. 낡은 값과 새로운 값이 동일하고, null 가 아닌 경우, 이벤트는 트리거되지 않습니다.

파라미터:
name - 변경된 프로퍼티의 프로그램명
oldValue - 낡은 프로퍼티치
newValue - 새로운 프로퍼티치

fireVetoableChange

public void fireVetoableChange(String  name,
                               Object  oldValue,
                               Object  newValue)
                        throws PropertyVetoException 
등록되어 모든 청취자에게 거부 가능 프로퍼티의 갱신을 통지합니다. 변경이 거부되었을 경우는, 모든 것을 낡은 값에 되돌리는 새로운 이벤트를 트리거하고 나서, 재차 PropertyVetoException 를 throw 합니다.

낡은 값과 새로운 값이 동일하고, null 가 아닌 경우, 이벤트는 트리거되지 않습니다.

파라미터:
name - 변경되는 프로퍼티의 프로그램명
oldValue - 낡은 프로퍼티치
newValue - 새로운 프로퍼티치
예외:
PropertyVetoException - 수취하는 측으로 프로퍼티 변경의 롤백(rollback)를 지정하고 있는 경우

validatePendingSetBeanContext

public boolean validatePendingSetBeanContext(BeanContext  newValue)
상자가 되어 있는 BeanContext 프로퍼티치의 보류중의 변경을 검증하는 등의 목적으로 setBeanContext 로부터 불려 갑니다. false 가 돌려주어지면(자), setBeanContext 는 PropertyVetoException 를 throw 합니다.

파라미터:
newValue - BeanContext 프로퍼티에 요구되고 있다 새로운 값
반환값:
변경 조작이 거부되는 경우는 true

releaseBeanContextResources

protected void releaseBeanContextResources()
이 메소드는, 독자적인 해제 동작을 제공하기 위해서 서브 클래스에 의해 오버라이드(override) 되는 일이 있습니다. 이 메소드를 호출하면(자), 객체는 그 BeanContext 내에서 상자는 아니게 되고 있기 (위해)때문에, 현재의 BeanContext 프로퍼티으로부터 취득되어 이 인스턴스에 의해 보관 유지 떠날 수 있어 모든 자원이 해제됩니다.


initializeBeanContextResources

protected void initializeBeanContextResources()
이 메소드는, 독자적인 초기화 동작을 제공하기 위해서 서브 클래스에 의해 오버라이드(override) 되는 일이 있습니다. 이 메소드를 호출하면(자), BeanContextChild 에 의해 요구되는 모든 자원이 현재의 BeanContext 프로퍼티으로부터 취득됩니다.


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 도 참조해 주세요.