@Auto annotated fields are serialized as is; Other fields are serialized as specified by the @Serializer.
@Auto
@Serializer
808182838485868788899091
{ Neo4jManager neo4j = new Neo4jManager( db.getManagementBean( Kernel.class ) ); InstanceInfo[] instances = neo4j.getHighAvailabilityBean().getInstancesInCluster(); assertNotNull( instances ); assertEquals( 1, instances.length ); InstanceInfo instance = instances[0]; assertNotNull( instance ); String address = instance.getAddress(); assertNotNull( "No JMX address for instance", address ); String id = instance.getInstanceId(); assertNotNull( "No instance id", id ); }
1920212223242526272829
assertFalse(m_invoked, "Should only be invoked once"); m_invoked = true; return new IInstanceInfo[] { new InstanceInfo(FactoryWithInstanceInfoTest2.class, new FactoryWithInstanceInfoTest2(42)), new InstanceInfo(FactoryWithInstanceInfoTest2.class, new FactoryWithInstanceInfoTest2(43)), }; }
171172173174175176177178179180181
errors.add(String.format("Class at offset %08X could not be resolved as its instance index is out of bounds")); continue; } final ClassInfo classInfo = data.getClasses().get(i); final InstanceInfo instanceInfo = data.getInstances().get(i); classes.add(resolveClass(data, classInfo, instanceInfo, methodMapping, errors)); } return classes;