|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.centrasite.appl.framework.utils.BeanUtils
public class BeanUtils
Class with utility methods for beans
Constructor Summary | |
---|---|
BeanUtils()
|
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanUtils()
Method Detail |
---|
public static Key newKey(java.lang.String id)
Key
with a specified id.
id
-
Key
public static Key newKey()
Key
with temporary id.
Key
public static Identity getIdentity(RegistryBean bean)
Identity
object for this registry bean.
bean
-
public static Identity newIdentity(java.lang.String key, java.lang.String checkpoint)
Identity
object.
key
- checkpoint
-
public static Identity newIdentity(java.lang.String key)
Identity
object only with key.
key
-
public static void setKey(RegistryBean bean, Key key)
Key
of a RegistryBean
.
bean
- key
- public static void setIdentity(RegistryBean bean, Identity id)
Identity
of a RegistryBean
.
bean
- the registry beanid
- the identitypublic static void setKey(RegistryBean bean, java.lang.String id)
Key
of a RegistryBean
.
bean
- id
- public static RegistryBean getNakedBean(RegistryBean bean)
RegistryBean
from a
(possibly) proxied instance.
bean
-
RegistryBean
public static boolean isBeanCreated(RegistryBean bean)
bean
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |