public class BaseHK2JAXBBean extends Object implements XmlHk2ConfigurationBean, Serializable
Modifier and Type | Field and Description |
---|---|
static char |
XML_PATH_SEPARATOR |
Constructor and Description |
---|
BaseHK2JAXBBean()
For JAXB and Serialization
|
Modifier and Type | Method and Description |
---|---|
void |
_doAdd(String childProperty,
Object rawChild,
String childKey,
int index) |
Object |
_doRemove(String childProperty,
String childKey,
int index) |
boolean |
_doRemoveZ(String childProperty,
String childKey,
int index) |
void |
_endMerge(boolean success)
Write lock for tree must be held
|
Map<String,Object> |
_getBeanLikeMap()
Returns a read-only copy of the
bean-like map corresponding to the current
state of this bean
|
XmlHk2BeanType |
_getBeanType()
Returns the type of this bean.
XmlHk2BeanType.NORMAL - A bean created via add or by Xml parsing
XmlHk2BeanType.DEFAULT_CHILD - A pseudo bean here due to a
org.glassfish.hk2.xml.api.annotation.DefaultChild annotation in the parent
|
DynamicChangeInfo |
_getChangeControl()
Gets the change control information for this bean
|
Set<String> |
_getChildrenXmlTags()
Read lock must be held
|
ClassReflectionHelper |
_getClassReflectionHelper()
Returns the reflection helper for this bean
|
String |
_getInstanceName()
Returns the instance path/name for this object
|
String |
_getKeyPropertyName()
Returns the name of the property that
returns the key for this bean, or
null if this bean does not have a key
property
|
String |
_getKeyValue()
Returns the key value for this object
|
UnparentedNode |
_getModel()
Returns the raw model for this bean
|
Object |
_getParent()
Returns the parent of this bean, or null if this
object is the root of the true
|
Object |
_getProperty(String propName)
Called by proxy
|
byte |
_getPropertyB(String propName)
Called by proxy
|
char |
_getPropertyC(String propName)
Called by proxy
|
double |
_getPropertyD(String propName)
Called by proxy
|
float |
_getPropertyF(String propName)
Called by proxy
|
int |
_getPropertyI(String propName)
Called by proxy
|
long |
_getPropertyJ(String propName)
Called by proxy
|
short |
_getPropertyS(String propName)
Called by proxy
|
boolean |
_getPropertyZ(String propName)
Called by proxy
|
ActiveDescriptor<?> |
_getSelfDescriptor() |
String |
_getSelfXmlTag() |
String |
_getXmlPath()
Returns the XmlPath for this object
|
boolean |
_hasProperty(String propName) |
Object |
_invokeCustomizedMethod(String methodName,
Class<?>[] params,
Object[] values) |
byte |
_invokeCustomizedMethodB(String methodName,
Class<?>[] params,
Object[] values) |
char |
_invokeCustomizedMethodC(String methodName,
Class<?>[] params,
Object[] values) |
double |
_invokeCustomizedMethodD(String methodName,
Class<?>[] params,
Object[] values) |
float |
_invokeCustomizedMethodF(String methodName,
Class<?>[] params,
Object[] values) |
int |
_invokeCustomizedMethodI(String methodName,
Class<?>[] params,
Object[] values) |
long |
_invokeCustomizedMethodJ(String methodName,
Class<?>[] params,
Object[] values) |
short |
_invokeCustomizedMethodS(String methodName,
Class<?>[] params,
Object[] values) |
boolean |
_invokeCustomizedMethodZ(String methodName,
Class<?>[] params,
Object[] values) |
Object |
_lookupChild(String propName,
String keyValue) |
void |
_merge(BaseHK2JAXBBean other,
WriteableBeanDatabase writeableDatabase)
Called with writeLock held
|
void |
_normalizeBean()
If this bean has
XmlHk2BeanType.DEFAULT_CHILD type then this method
will change the type to XmlHk2BeanType.NORMAL . |
void |
_setActive()
Once this has been set the bean is considered active, and
so defaulting can happen on the bean
|
void |
_setDynamicChangeInfo(DynamicChangeInfo change)
Once this is set the dynamic change protocol is in effect,
and all paths can be calculated
|
void |
_setInstanceName(String name) |
void |
_setKeyValue(String key) |
void |
_setModel(UnparentedNode model,
ClassReflectionHelper helper) |
void |
_setParent(Object parent) |
void |
_setProperty(String propName,
boolean propValue) |
void |
_setProperty(String propName,
byte propValue) |
void |
_setProperty(String propName,
char propValue) |
void |
_setProperty(String propName,
double propValue) |
void |
_setProperty(String propName,
float propValue) |
void |
_setProperty(String propName,
int propValue) |
void |
_setProperty(String propName,
long propValue) |
void |
_setProperty(String propName,
Object propValue) |
void |
_setProperty(String propName,
Object propValue,
boolean changeInHub) |
void |
_setProperty(String propName,
short propValue) |
void |
_setSelfDescriptor(ActiveDescriptor<?> selfDescriptor) |
void |
_setSelfXmlTag(String selfXmlTag) |
void |
_shallowCopyFrom(BaseHK2JAXBBean copyMe)
This copy method ONLY copies NON child and
non parent fields, and so is not a full copy.
|
boolean |
changeInHub(String propName,
Object propValue,
WriteableBeanDatabase wbd)
Called under write lock
|
String |
toString() |
public static final char XML_PATH_SEPARATOR
public void _setProperty(String propName, byte propValue)
public void _setProperty(String propName, boolean propValue)
public void _setProperty(String propName, char propValue)
public void _setProperty(String propName, short propValue)
public void _setProperty(String propName, int propValue)
public void _setProperty(String propName, float propValue)
public void _setProperty(String propName, long propValue)
public void _setProperty(String propName, double propValue)
public Object _getProperty(String propName)
propName
- Property of child or non-child element or attributepublic boolean _getPropertyZ(String propName)
propName
- public byte _getPropertyB(String propName)
propName
- public char _getPropertyC(String propName)
propName
- public short _getPropertyS(String propName)
propName
- public int _getPropertyI(String propName)
propName
- public float _getPropertyF(String propName)
propName
- public long _getPropertyJ(String propName)
propName
- public double _getPropertyD(String propName)
propName
- public Object _invokeCustomizedMethod(String methodName, Class<?>[] params, Object[] values)
public int _invokeCustomizedMethodI(String methodName, Class<?>[] params, Object[] values)
public long _invokeCustomizedMethodJ(String methodName, Class<?>[] params, Object[] values)
public boolean _invokeCustomizedMethodZ(String methodName, Class<?>[] params, Object[] values)
public byte _invokeCustomizedMethodB(String methodName, Class<?>[] params, Object[] values)
public char _invokeCustomizedMethodC(String methodName, Class<?>[] params, Object[] values)
public short _invokeCustomizedMethodS(String methodName, Class<?>[] params, Object[] values)
public float _invokeCustomizedMethodF(String methodName, Class<?>[] params, Object[] values)
public double _invokeCustomizedMethodD(String methodName, Class<?>[] params, Object[] values)
public boolean _hasProperty(String propName)
public Map<String,Object> _getBeanLikeMap()
XmlHk2ConfigurationBean
_getBeanLikeMap
in interface XmlHk2ConfigurationBean
public Object _getParent()
XmlHk2ConfigurationBean
_getParent
in interface XmlHk2ConfigurationBean
public void _setParent(Object parent)
public void _setSelfXmlTag(String selfXmlTag)
public String _getSelfXmlTag()
public String _getXmlPath()
XmlHk2ConfigurationBean
_getXmlPath
in interface XmlHk2ConfigurationBean
public void _setInstanceName(String name)
public String _getInstanceName()
XmlHk2ConfigurationBean
_getInstanceName
in interface XmlHk2ConfigurationBean
public void _setKeyValue(String key)
public String _getKeyPropertyName()
XmlHk2ConfigurationBean
_getKeyPropertyName
in interface XmlHk2ConfigurationBean
public void _setModel(UnparentedNode model, ClassReflectionHelper helper)
public String _getKeyValue()
XmlHk2ConfigurationBean
_getKeyValue
in interface XmlHk2ConfigurationBean
public void _setDynamicChangeInfo(DynamicChangeInfo change)
change
- The change control objectpublic void _setActive()
public Set<String> _getChildrenXmlTags()
public void _shallowCopyFrom(BaseHK2JAXBBean copyMe)
copyMe
- The non-null bean to copy FROMpublic void _merge(BaseHK2JAXBBean other, WriteableBeanDatabase writeableDatabase)
other
- writeableDatabase
- public void _endMerge(boolean success)
success
- If the transaction committed successfullypublic boolean changeInHub(String propName, Object propValue, WriteableBeanDatabase wbd)
propName
- The name of the property to changepropValue
- The new value of the propertypublic UnparentedNode _getModel()
public DynamicChangeInfo _getChangeControl()
public ClassReflectionHelper _getClassReflectionHelper()
public void _setSelfDescriptor(ActiveDescriptor<?> selfDescriptor)
public ActiveDescriptor<?> _getSelfDescriptor()
public XmlHk2BeanType _getBeanType()
XmlHk2ConfigurationBean
XmlHk2BeanType.NORMAL
- A bean created via add or by Xml parsingXmlHk2BeanType.DEFAULT_CHILD
- A pseudo bean here due to a
org.glassfish.hk2.xml.api.annotation.DefaultChild
annotation in the parent_getBeanType
in interface XmlHk2ConfigurationBean
public void _normalizeBean()
XmlHk2ConfigurationBean
XmlHk2BeanType.DEFAULT_CHILD
type then this method
will change the type to XmlHk2BeanType.NORMAL
. No fields of the
bean will be changed and there will be no transaction in the configuration Hub
if the bean is registered in the hub_normalizeBean
in interface XmlHk2ConfigurationBean
Copyright © 2009–2016 Oracle Corporation. All rights reserved.