public interface Key extends Serializable
Modifier and Type | Method and Description |
---|---|
static <C> UniqueKey<C> |
create(Class<C> clazz,
Object... keyPart)
Build an unique key.
|
static <C> UniqueKey<C> |
create(Class<C> clazz,
Object[] optionalData,
Object... keyPart)
Build an unique key.
|
static <C> UniqueKey<C> |
createMulti(Class<C> clazz,
Object... keyPart)
Build a multiton key.
|
static <C> UniqueKey<C> |
createMulti(Class<C> clazz,
Object[] keyPart,
Object... optionalData)
Build a multiton key.
|
static <C> UniqueKey<C> |
createSingle(Class<C> clazz,
Object... optionalData)
Build a singleton key.
|
static <C> UniqueKey<C> create(Class<C> clazz, Object... keyPart)
C
- The type of the object registered by this ClassKeyclazz
- the class type of the componentkeyPart
- all complementary part of the keystatic <C> UniqueKey<C> create(Class<C> clazz, Object[] optionalData, Object... keyPart)
C
- The type of the object registered by this ClassKeyclazz
- the class type of the componentoptionalData
- the optional data to be transmit to the componentkeyPart
- all complementary part of the keystatic <C> UniqueKey<C> createSingle(Class<C> clazz, Object... optionalData)
C
- The type of the object registered by this ClassKeyclazz
- the class type of the componentoptionalData
- the optional data to be transmit to the componentstatic <C> UniqueKey<C> createMulti(Class<C> clazz, Object... keyPart)
C
- The type of the object registered by this ClassKeyclazz
- the class type of the componentkeyPart
- all complementary part of the keystatic <C> UniqueKey<C> createMulti(Class<C> clazz, Object[] keyPart, Object... optionalData)
C
- The type of the object registered by this ClassKeyclazz
- the class type of the componentkeyPart
- all complementary part of the keyoptionalData
- the optional data to be transmit to the componentCopyright © 2011–2016 JRebirth OSS. All rights reserved.