public class BeanUtils
extends java.lang.Object
Constructor and Description |
---|
BeanUtils() |
Modifier and Type | Method and Description |
---|---|
static Identity |
getIdentity(RegistryBean bean)
Retrieves the
Identity object for this registry bean. |
static RegistryBean |
getNakedBean(RegistryBean bean)
Extract and return the naked instance of a
RegistryBean from a
(possibly) proxied instance. |
static boolean |
isBeanCreated(RegistryBean bean)
Checks if a given bean is newly created.
|
static Identity |
newIdentity(java.lang.String key)
Creates new
Identity object only with key. |
static Identity |
newIdentity(java.lang.String key,
java.lang.String checkpoint)
Creates new
Identity object. |
static Key |
newKey()
Creates a
Key with temporary id. |
static Key |
newKey(java.lang.String id)
Creates a
Key with a specified id. |
static void |
setIdentity(RegistryBean bean,
Identity id)
Sets new
Identity of a RegistryBean . |
static void |
setKey(RegistryBean bean,
Key key)
Sets new
Key of a RegistryBean . |
static void |
setKey(RegistryBean bean,
java.lang.String id)
Sets new
Key of a RegistryBean . |
public static Key newKey(java.lang.String id)
Key
with a specified id.id
- the concept id.Key
object.public static Identity getIdentity(RegistryBean bean)
Identity
object for this registry bean.bean
- the registry bean.Identity
object.public static Identity newIdentity(java.lang.String key, java.lang.String checkpoint)
Identity
object.key
- the concept key.checkpoint
- the check point value.Identity
object.public static Identity newIdentity(java.lang.String key)
Identity
object only with key.key
- the concept key.Identity
object.public static void setKey(RegistryBean bean, Key key)
Key
of a RegistryBean
.bean
- the registry bean.key
- the concept key.public static void setIdentity(RegistryBean bean, Identity id)
Identity
of a RegistryBean
.bean
- the registry bean.id
- the identitypublic static void setKey(RegistryBean bean, java.lang.String id)
Key
of a RegistryBean
.bean
- the registry bean.id
- the concept ID.public static RegistryBean getNakedBean(RegistryBean bean)
RegistryBean
from a
(possibly) proxied instance.bean
- the registry bean.RegistryBean
object.public static boolean isBeanCreated(RegistryBean bean)
bean
- the registry bean.true
if it is bean created.