クラス
java.beans.IntrospectionExceptionの使用
IntrospectionExceptionを使用するパッケージ
-
java.beansでのIntrospectionExceptionの使用
IntrospectionExceptionを投げるjava.beansのメソッド修飾子と型メソッド説明static BeanInfoIntrospector.getBeanInfo(Class<?> beanClass) Java Beanのイントロスペクションを行い、すべてのプロパティ、公開メソッド、イベントについて学習します。static BeanInfoIntrospector.getBeanInfo(Class<?> beanClass, int flags) いくつかの制御フラグに従って、Java Beanのイントロスペクションを行い、すべてのプロパティ、公開されたメソッド、イベントについて学習します。static BeanInfoIntrospector.getBeanInfo(Class<?> beanClass, Class<?> stopClass) Java Beanのイントロスペクションを行い、指定された「停止」ポイントに達するまで、プロパティ、公開されたメソッドを調べます。static BeanInfoIntrospector.getBeanInfo(Class<?> beanClass, Class<?> stopClass, int flags) いくつかの制御flagsに従って、Java Beanのイントロスペクションを行い、指定されたstopClassポイントに達するまで、そのすべてのプロパティ、公開されたメソッド、イベントについて学習します。voidIndexedPropertyDescriptor.setIndexedReadMethod(Method readMethod) インデックス付きプロパティ値の読込みに使用するメソッドを設定します。voidIndexedPropertyDescriptor.setIndexedWriteMethod(Method writeMethod) インデックス付きプロパティ値の書込みに使用するメソッドを設定します。voidPropertyDescriptor.setReadMethod(Method readMethod) プロパティ値の読込みに使用するメソッドを設定します。voidPropertyDescriptor.setWriteMethod(Method writeMethod) プロパティ値の書込みに使用するメソッドを設定します。IntrospectionExceptionをスローするjava.beansのコンストラクタ修飾子コンストラクタ説明EventSetDescriptor(Class<?> sourceClass, String eventSetName, Class<?> listenerType, String listenerMethodName) EventSetDescriptorを作成します。これは、指定されたイベント"fred"が、インタフェースFredListenerの単一のメソッドに対するコールとして配信される(1)である、最も単純な標準設計パターンに従っていることを前提としています。(2)がFredEvent型の単一の引数、および(3)を持ち、FredListenerは、ソース・コンポーネントのaddFredListenerメソッドの呼出しに登録され、removeFredListenerメソッドの呼出しで削除される場合があります。EventSetDescriptor(Class<?> sourceClass, String eventSetName, Class<?> listenerType, String[] listenerMethodNames, String addListenerMethodName, String removeListenerMethodName) 文字列名を使用してEventSetDescriptorを最初から作成します。EventSetDescriptor(Class<?> sourceClass, String eventSetName, Class<?> listenerType, String[] listenerMethodNames, String addListenerMethodName, String removeListenerMethodName, String getListenerMethodName) このコンストラクタは、文字列名を使って、ゼロからEventSetDescriptorを作成します。EventSetDescriptor(String eventSetName, Class<?> listenerType, MethodDescriptor[] listenerMethodDescriptors, Method addListenerMethod, Method removeListenerMethod) java.lang.reflect.MethodDescriptorおよびjava.lang.Classオブジェクトを使用して、EventSetDescriptorを最初から作成します。EventSetDescriptor(String eventSetName, Class<?> listenerType, Method[] listenerMethods, Method addListenerMethod, Method removeListenerMethod) java.lang.reflect.Methodおよびjava.lang.Classオブジェクトを使用して、EventSetDescriptorを最初から作成します。EventSetDescriptor(String eventSetName, Class<?> listenerType, Method[] listenerMethods, Method addListenerMethod, Method removeListenerMethod, Method getListenerMethod) このコンストラクタは、java.lang.reflect.Methodオブジェクトとjava.lang.Classオブジェクトを使って、ゼロからEventSetDescriptorを作成します。IndexedPropertyDescriptor(String propertyName, Class<?> beanClass) このコンストラクタは、インデックス付きのアクセスと配列アクセスのどちらでも、アクセス用メソッドgetFooおよびsetFooを使って、標準Java規約に準拠したプロパティのIndexedPropertyDescriptorを構築します。IndexedPropertyDescriptor(String propertyName, Class<?> beanClass, String readMethodName, String writeMethodName, String indexedReadMethodName, String indexedWriteMethodName) このコンストラクタは、単純なプロパティ名と、プロパティの読み込みおよび書込み用のメソッド名(インデックス付きメソッドと非インデックス付きメソッドの両方)を引数に取ります。IndexedPropertyDescriptor(String propertyName, Method readMethod, Method writeMethod, Method indexedReadMethod, Method indexedWriteMethod) このコンストラクタは、単純なプロパティ名と、プロパティの読み込みおよび書込み用のMethodオブジェクトを引数に取ります。PropertyDescriptor(String propertyName, Class<?> beanClass) アクセス用メソッドgetFooおよびsetFooを使って、標準のJava規約に準拠しているプロパティのPropertyDescriptorを構築します。PropertyDescriptor(String propertyName, Class<?> beanClass, String readMethodName, String writeMethodName) このコンストラクタは、単純なプロパティ名と、プロパティの読み込みおよび書込み用のメソッド名を引数に取ります。PropertyDescriptor(String propertyName, Method readMethod, Method writeMethod) このコンストラクタは、単純なプロパティ名と、プロパティの読み込みおよび書込み用のMethodオブジェクトを引数に取ります。