com.vmware.vise.vim.data.adapters.search
Class JaxbBindingsInitializer
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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
Copyright @ 2012 VMware, Inc. All rights reserved.