com.vmware.vim25.mo.util.MorUtil.class Maven / Gradle / Ivy
The newest version!
???? 1 j com/vmware/vim25/mo/util/MorUtil java/lang/Object
moPackageName Ljava/lang/String;
ConstantValue com.vmware.vim25.mo ()V Code
LineNumberTable LocalVariableTable this "Lcom/vmware/vim25/mo/util/MorUtil;
createMORs P([Lcom/vmware/vim25/mo/ManagedObject;)[Lcom/vmware/vim25/ManagedObjectReference; "java/lang/IllegalArgumentException
'com/vmware/vim25/ManagedObjectReference
!com/vmware/vim25/mo/ManagedObject getMOR +()Lcom/vmware/vim25/ManagedObjectReference; mos $[Lcom/vmware/vim25/mo/ManagedObject; mors *[Lcom/vmware/vim25/ManagedObjectReference; i I createExactManagedObject t(Lcom/vmware/vim25/mo/ServerConnection;Lcom/vmware/vim25/ManagedObjectReference;)Lcom/vmware/vim25/mo/ManagedObject;
) * + getType ()Ljava/lang/String; - java/lang/StringBuilder / com.vmware.vim25.mo.
, 1
2 (Ljava/lang/String;)V
, 4 5 6 append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
, 8 9 + toString
; = < java/lang/Class > ? forName %(Ljava/lang/String;)Ljava/lang/Class; A $com/vmware/vim25/mo/ServerConnection
; C D E getConstructor 3([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
G I H java/lang/reflect/Constructor J K newInstance '([Ljava/lang/Object;)Ljava/lang/Object;
M O N java/lang/Exception P printStackTrace sc &Lcom/vmware/vim25/mo/ServerConnection; mor )Lcom/vmware/vim25/ManagedObjectReference; moType moClass Ljava/lang/Class; constructor Ljava/lang/reflect/Constructor; e Ljava/lang/Exception; createExactManagedEntity t(Lcom/vmware/vim25/mo/ServerConnection;Lcom/vmware/vim25/ManagedObjectReference;)Lcom/vmware/vim25/mo/ManagedEntity;
_ &