package nl.tudelft.dsol.introspection; import org.pmw.tinylog.Logger; import nl.tudelft.dsol.introspection.beans.SubTestBean2; import nl.tudelft.simulation.introspection.Property; import nl.tudelft.simulation.introspection.beans.BeanIntrospector; /** * A test program for the JavaBean introspection implementation. *

* Copyright (c) 2002-2022 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See * for project information https://simulation.tudelft.nl. The DSOL * project is distributed under a three-clause BSD-style license, which can be found at * * https://simulation.tudelft.nl/dsol/3.0/license.html. *

* @author Niels Lang * Peter Jacobs * @since 1.5 */ public final class IntrospectionBeansTest { /** * constructs a new PTestBeans. */ private IntrospectionBeansTest() { super(); // unreachable code; } /** * executes the PTestBeans. * @param args the commandline arguments */ public static void main(final String[] args) { Property[] props = (new BeanIntrospector()).getProperties(new SubTestBean2()); for (int i = 0; i < props.length; i++) { Logger.info("main - Prop name: {}", props[i].getName()); Logger.info("main - Prop class: {}", props[i].getType()); Logger.info("main - Prop value: {}", props[i].getValue()); } } }