"com.sun.star.reflection.theTypeDescriptionManager");
// the manager contains all providers
XEnumerationAccess aProviderAccess = (XEnumerationAccess)
UnoRuntime.queryInterface(XEnumerationAccess.class, o);
// collect enumeration
XEnumeration xProviderEnum;
if (aProviderAccess.hasElements())
xProviderEnum = aProviderAccess.createEnumeration();
else
throw new lib.StatusException(Status.failed(
"No TypeDescriptionProvider given"));
// take the first registry type description provider
oInterface = xProviderEnum.nextElement();
oObj = (XInterface) AnyConverter.toObject(
new Type(XInterface.class),oInterface);
}
catch( com.sun.star.uno.Exception e ) {
log.println("Service not available" );