Beans.getInstanceOf

Beans.getInstanceOf

Class Overview | Class Members | This Package | All Packages

Syntax
public static Object getInstanceOf( Object bean, Class targetType )
Parameters
obj
Object from which we want to obtain a view.
targetType
The type of view we'd like to get.
Description
From a given bean, obtain an object representing a specified type view of that source object.

The result may be the same object or a different object. If the requested target view isn't available then the given bean is returned.

This method is provided in Beans 1.0 as a hook to allow the addition of more flexible bean behaviour in the future.