vSphere Client SDK API Documentation : version 5.5.0.1300321

com.vmware.vise.vim.data.adapters.search
Class JaxbBindingsInitializer

java.lang.Object
  extended by com.vmware.vise.vim.data.adapters.search.JaxbBindingsInitializer
All Implemented Interfaces:
com.vmware.vise.util.AutoCloseable, org.eclipse.gemini.blueprint.context.BundleContextAware

public final class JaxbBindingsInitializer
extends Object
implements com.vmware.vise.util.AutoCloseable, org.eclipse.gemini.blueprint.context.BundleContextAware

Initializes JAXB bindings of the object model for a particular namespace. These bindings will be used to handle Inventory Service queries for objects in that namespace.


Constructor Summary
JaxbBindingsInitializer(SearchServiceExtensionRegistry searchRegistry, String objectNamespace, Collection<String> bindingPackages)
          Register JAXB bindings for objects in objectNamespace.
 
Method Summary
 void close()
           
 void setBundleContext(org.osgi.framework.BundleContext bundleContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxbBindingsInitializer

public JaxbBindingsInitializer(SearchServiceExtensionRegistry searchRegistry,
                               String objectNamespace,
                               Collection<String> bindingPackages)
Register JAXB bindings for objects in objectNamespace.

Parameters:
searchRegistry - The inventory service data adapter's extension registry.
objectNamespace - The xml namespace of objects published to Inventory Service. For example, if the fully-qualified type names of objects published to Inventory Service begin with a prefix of "foo", where the fully-qualified type names are in the format "foo:objectType", then this argument should be "foo".
bindingPackages - Packages containing jaxb binding classes.
classLoader - ClassLoader capable of loading classes from the bindingPackages.
Throws:
IllegalArgumentException - If any parameters are null.
Method Detail

setBundleContext

public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
Specified by:
setBundleContext in interface org.eclipse.gemini.blueprint.context.BundleContextAware

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.