I am able to see the primitive data type used in java class in the event browser's table of Java Mission Control. But it is not showing the composite data types.
My code is:
package com.foo.bar;
public class AB {
@Name("com.foo.bar.Author")
@Label("Author Event")
public static class Author extends Event {
String authorName;
int age;
String place;
Author(String name, int age, String place)
{
this.authorName = name;
this.age = age;
this.place = place;
}
}
@Name("com.foo.bar.Book")
@Label("Book Event")
public static class Book extends Event
{
String name;
int price;
// author details
Author auther;
Book(String n, int p, Author auther)
{
this.name = n;
this.price = p;
this.auther = auther;
}
}
public static void main(String[] args) throws InterruptedException {
Author author = new Author("John", 42, "USA");
Book b = new Book("Java for Begginer", 800, author);
b.begin();
author.begin();
author.commit();
b.commit();
}
}
And I am getting something like this in JMC:
How can I get the Author details in Book event? Is there a way in JMC to get the composite data in event browser's column?
Thanks
