Map<String, ManagedProperty> properties = component.getProperties();
LOG.info("\t******Properties******");
for (ManagedProperty managedProperty : properties.values())
{
String name = managedProperty.getName();
MetaType propType = managedProperty.getMetaType();
LOG.info("\t\tProperty Name: " + name);
LOG.info("\t\tProperty Type: " + propType.getTypeName());
if (!propType.isGeneric() && !propType.isSimple())
{
if (propType.isCollection())
{
CollectionMetaType collMetaType = (CollectionMetaType) propType;
LOG.info("\t\t\tCollection Sub Type: " + collMetaType.getTypeName());
}
if (propType.isComposite())
{
CompositeMetaType compositeType = (CompositeMetaType) propType;
Set<String> items = compositeType.itemSet();
for (String itemName : items)
{
LOG.info("\t\t\tComposite Sub Type: " + compositeType.getType(itemName).getTypeName());
}
}
}
}
LOG.info("***********************************************");
LOG.info("\t******Operations******");
Set<ManagedOperation> operations = component.getOperations();
for (ManagedOperation operation : operations)
{
String name = operation.getName();
MetaType returnType = operation.getReturnType();
LOG.info("\t\tOperation Name: " + name);
LOG.info("\t\tReturn Type: " + returnType.getTypeName());
ManagedParameter[] parameters = operation.getParameters();
LOG.info("\t\tParameters:");
for (ManagedParameter parameter : parameters)
{
String paramName = parameter.getName();
MetaType paramType = parameter.getMetaType();
LOG.info("\t\t\tParameter Name: " + paramName + " Type: " + paramType);
}
}
}
}