}
@Test
public void listBeans() {
DataProviderServices providerServices = DataProviderServices.lookup();
DataDisplayerServices displayerServices = DataDisplayerServices.lookup();
System.out.println("Scalar functions");
System.out.println("------------------------");
ScalarFunction[] scalarFunctions = providerServices.getScalarFunctionManager().getAllScalarFunctions();
for (int i = 0; i < scalarFunctions.length; i++) {
ScalarFunction scalarFunction = scalarFunctions[i];
System.out.println(scalarFunction.getCode());
}
System.out.println("\nData provider types");
System.out.println("-----------------------");
DataProviderType[] dataProviders = providerServices.getDataProviderManager().getDataProviderTypes();
for (int i = 0; i < dataProviders.length; i++) {
DataProviderType providerType = dataProviders[i];
System.out.println(providerType.getUid());
}
System.out.println("\nData displayer types");
System.out.println("-------------------------");
DataDisplayerType[] displayerType = displayerServices.getDataDisplayerManager().getDataDisplayerTypes();
for (int i = 0; i < displayerType.length; i++) {
DataDisplayerType dataDisplayerType = displayerType[i];
System.out.println(dataDisplayerType.getUid());
}
System.out.println("\nDisplayer renderers");
System.out.println("------------------------");
DataDisplayerRenderer[] displayerRenderers = displayerServices.getDataDisplayerManager().getDataDisplayerRenderers();
for (int i = 0; i < displayerRenderers.length; i++) {
DataDisplayerRenderer renderer = displayerRenderers[i];
System.out.println(renderer.getUid());
}
}