vSphere Client SDK API Documentation : version 5.5.0.1300321

com.vmware.vise.data.uri
Class ResourceObjectReferenceAdapterInitializer

java.lang.Object
  extended by com.vmware.vise.data.uri.ResourceObjectReferenceAdapterInitializer
All Implemented Interfaces:
com.vmware.vise.util.AutoCloseable

public final class ResourceObjectReferenceAdapterInitializer
extends Object
implements com.vmware.vise.util.AutoCloseable

Registers ResourceObjectReferenceAdapters for custom URI types.


Constructor Summary
ResourceObjectReferenceAdapterInitializer(DataServiceExtensionRegistry dataServiceExtensionRegistry, Class<?> referenceType, String uidPrefix, ResourceObjectReferenceAdapter objectReferenceAdapter)
          Register the objectReferenceAdapter so that it handles all URIs starting with the uidPrefix, serializing them into referenceType objects.
 
Method Summary
 void close()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceObjectReferenceAdapterInitializer

public ResourceObjectReferenceAdapterInitializer(DataServiceExtensionRegistry dataServiceExtensionRegistry,
                                                 Class<?> referenceType,
                                                 String uidPrefix,
                                                 ResourceObjectReferenceAdapter objectReferenceAdapter)
Register the objectReferenceAdapter so that it handles all URIs starting with the uidPrefix, serializing them into referenceType objects.

Parameters:
dataServiceExtensionRegistry - Registry of data service extensions.
referenceType - The Object type to be used to serialize URIs of the given prefix.
uidPrefix - The uidPrefix used by URIs that can be serialized by objectReferenceAdapter.
objectReferenceAdapter - A custom ResourceObjectReferenceAdapter designed to handle URIs starting with the uidPrefix.
Throws:
IllegalArgumentException - if any parameters are null.
Method Detail

close

public void close()
Specified by:
close in interface com.vmware.vise.util.AutoCloseable

vSphere Client SDK API Documentation : version 5.5.0.1300321

Copyright @ 2012 VMware, Inc. All rights reserved.