public class MapIdFactory extends Object
IdInterfaceValidator.validate(Class).IdInterfaceValidator.validate(Class)| Constructor and Description |
|---|
MapIdFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
id(Class<T> idInterface)
Produces an implementation of the given id interface type using the type's class loader.
|
static <T> T |
id(Class<T> idInterface,
ClassLoader loader)
Produces an implementation of the given class loader.
|
public static <T> T id(Class<T> idInterface)
IdInterfaceValidator.validate(Class). Returns an implementation of the given
interface that also implements MapId, so it can be cast as such if necessary.idInterface - The type of the id interface.MapId.IdInterfaceValidator.validate(Class)public static <T> T id(Class<T> idInterface, ClassLoader loader)
IdInterfaceValidator.validate(Class). Returns an implementation of the given interface that also implements
MapId, so it can be cast as such if necessary.idInterface - The type of the id interface.MapId.IdInterfaceValidator.validate(Class)Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.