public class ExtensionObjectFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static ExtensionObjectFactory |
EXTENSION_OBJECT_FACTORY |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
newInstance(SpiExtensionFactory extensionFactory,
Class<T> type)
Instantiates an object as defined by the extension factory, and casts it to the desired type.
|
public static final ExtensionObjectFactory EXTENSION_OBJECT_FACTORY
public <T> T newInstance(SpiExtensionFactory extensionFactory, Class<T> type) throws ExtensionLoadingException
T - type to cast toextensionFactory - extension factorytype - type to cast toExtensionLoadingException - if it is not possible to instantiate the extension objectCopyright © 2013–2020 Hotels.com. All rights reserved.