com.vmware.vise.data.uri
Class ResourceObjectReferenceAdapterInitializer
java.lang.Object
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.
Method Summary |
void |
close()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
close
public void close()
- Specified by:
close
in interface com.vmware.vise.util.AutoCloseable
Copyright @ 2012 VMware, Inc. All rights reserved.