Class BaseHK2JAXBBean
java.lang.Object
org.glassfish.hk2.xml.jaxb.internal.BaseHK2JAXBBean
- All Implemented Interfaces:
Serializable,XmlHk2ConfigurationBean
public abstract class BaseHK2JAXBBean
extends Object
implements XmlHk2ConfigurationBean, Serializable
- Author:
- jwells
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidWrite lock must be heldvoid__fixAlias(String propNamespace, String propName, String baseName) intvoidWrite lock must be heldvoid__setAddCost(int addCost) boolean_changeInHub(String propNamespace, String propName, Object propValue, WriteableBeanDatabase wbd) Called under write lockboolean_changeInHub(List<PropertyChangeEvent> events, WriteableBeanDatabase wbd) Called under write lock_doAdd(String propNamespace, String childProperty, Object rawChild, String childKey, int index, boolean changeList) _doRemove(String propNamespace, String childProperty, String childKey, int index, Object child, boolean changeList) boolean_doRemoveZ(String propNamespace, String childProperty, String childKey, int index, Object child) Returns a read-only copy of the bean-like map corresponding to the current state of this bean in the default namespace of the documentGets the change control information for this beanRead lock must be heldReturns the reflection helper for this beanReturns the instance path/name for this objectReturns the name of the property that returns the key for this bean, or null if this bean does not have a key propertyReturns the key value for this objectReturns the parent of this bean, or null if this object is the root of the true_getProperty(String propName) Gets the property with the given name from the default name space._getProperty(String propNamespace, String propName) Called by proxy_getProperty(QName qName) byte_getPropertyB(String propNamespace, String propName) Called by proxychar_getPropertyC(String propNamespace, String propName) Called by proxydouble_getPropertyD(String propNamespace, String propName) Called by proxyfloat_getPropertyF(String propNamespace, String propName) Called by proxyint_getPropertyI(String propNamespace, String propName) Called by proxylong_getPropertyJ(String propNamespace, String propName) Called by proxyshort_getPropertyS(String propNamespace, String propName) Called by proxyboolean_getPropertyZ(String propNamespace, String propName) Called by proxy_getRoot()Gets the root associated with this bean.Gets the descriptor with which this service was created.Returns the XmlPath for this objectboolean_hasProperty(String propNamespace, String propName) _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) booleanReturns true if the given property is explicitly set, false if the property has not been explicitly set.booleanReturns true if the given property is explicitly set, false if the property has not been explicitly set_lookupChild(String propName, String keyValue) Looks up the child with the given propertyName that has the given key value._lookupChild(String propNamespace, String propName, String keyValue) Looks up the child with the given propertyName that has the given key valuevoidOnce this has been set the bean is considered active, and so defaulting can happen on the beanvoidvoid_setDynamicChangeInfo(XmlRootHandleImpl<?> root, DynamicChangeInfo<?> change) void_setDynamicChangeInfo(XmlRootHandleImpl<?> root, DynamicChangeInfo<?> change, boolean doXmlPathCalculation) Once this is set the dynamic change protocol is in effect, and all paths can be calculatedvoid_setInstanceName(String name) void_setKeyValue(String key) void_setParent(XmlHk2ConfigurationBean parent) When this is called all of the parents can be found and so the namespaces can be determinedvoid_setProperty(String propName, Object propValue) Will set the corresponding property of this bean to the given value in the default name space.void_setProperty(String propNamespace, String propName, boolean propValue) void_setProperty(String propNamespace, String propName, byte propValue) void_setProperty(String propNamespace, String propName, char propValue) void_setProperty(String propNamespace, String propName, double propValue) void_setProperty(String propNamespace, String propName, float propValue) void_setProperty(String propNamespace, String propName, int propValue) void_setProperty(String propNamespace, String propName, long propValue) void_setProperty(String propNamespace, String propName, short propValue) void_setProperty(String propNamespace, String propName, Object propValue) Will set the corresponding property of this bean to the given value.void_setProperty(String propNamespace, String propName, Object propValue, boolean changeInHub) void_setProperty(String propNamespace, String propName, Object propValue, boolean changeInHub, boolean rawSet) void_setProperty(QName qName, Object propValue) void_setProperty(QName qName, Object propValue, boolean changeInHub) void_setSelfDescriptor(ActiveDescriptor<?> selfDescriptor) void_setSelfXmlTag(String selfNamespace, String selfXmlTag) void_shallowCopyFrom(BaseHK2JAXBBean copyMe, boolean copyReferences) This copy method ONLY copies non-child and non-parent and optionally reference fields and so is not a full copy.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glassfish.hk2.xml.api.XmlHk2ConfigurationBean
_getModel
-
Field Details
-
XML_PATH_SEPARATOR
public static final char XML_PATH_SEPARATOR- See Also:
-
-
Constructor Details
-
BaseHK2JAXBBean
public BaseHK2JAXBBean()For JAXB and Serialization
-
-
Method Details
-
_setProperty
Description copied from interface:XmlHk2ConfigurationBeanWill set the corresponding property of this bean to the given value in the default name space. Care should be taken that the propName is one of the properties of this bean- Specified by:
_setPropertyin interfaceXmlHk2ConfigurationBean- Parameters:
propName- The non-null name of a property on this bean to setpropValue- The possibly null value the property should take. May not be null if this property represents some scalar value
-
_setProperty
Description copied from interface:XmlHk2ConfigurationBeanWill set the corresponding property of this bean to the given value. Care should be taken that the propName is one of the properties of this bean- Specified by:
_setPropertyin interfaceXmlHk2ConfigurationBean- Parameters:
propNamespace- The non-null name space of this propertypropName- The non-null name of a property on this bean to setpropValue- The possibly null value the property should take. May not be null if this property represents some scalar value
-
_setProperty
-
_setProperty
-
_setProperty
-
_setProperty
-
_setProperty
-
_setProperty
-
_setProperty
-
_setProperty
-
_setProperty
-
_setProperty
-
_setProperty
-
_setProperty
-
_getProperty
-
_getProperty
Called by proxy- Specified by:
_getPropertyin interfaceXmlHk2ConfigurationBean- Parameters:
propName- Property of child or non-child element or attributepropNamespace- the non-null name space name- Returns:
- Value
-
_getProperty
Description copied from interface:XmlHk2ConfigurationBeanGets the property with the given name from the default name space. Defaulting will happen- Specified by:
_getPropertyin interfaceXmlHk2ConfigurationBean- Parameters:
propName- The property with the given name- Returns:
- The value of this property or the default value if not set
-
_getPropertyZ
Called by proxy- Parameters:
propName-- Returns:
-
_getPropertyB
Called by proxy- Parameters:
propName-- Returns:
-
_getPropertyC
Called by proxy- Parameters:
propName-- Returns:
-
_getPropertyS
Called by proxy- Parameters:
propName-- Returns:
-
_getPropertyI
Called by proxy- Parameters:
propName-- Returns:
-
_getPropertyF
Called by proxy- Parameters:
propName-- Returns:
-
_getPropertyJ
Called by proxy- Parameters:
propName-- Returns:
-
_getPropertyD
Called by proxy- Parameters:
propName-- Returns:
-
_lookupChild
Description copied from interface:XmlHk2ConfigurationBeanLooks up the child with the given propertyName that has the given key value. Will only search the default namespace- Specified by:
_lookupChildin interfaceXmlHk2ConfigurationBean- Parameters:
propName- The non-null property name to look forkeyValue- The non-null keyValue to look for- Returns:
- The child or null if not found
-
_lookupChild
Description copied from interface:XmlHk2ConfigurationBeanLooks up the child with the given propertyName that has the given key value- Specified by:
_lookupChildin interfaceXmlHk2ConfigurationBean- Parameters:
propNamespace- The namespace to find the property in. If null then the default namespacepropName- The non-null property name to look forkeyValue- The non-null keyValue to look for- Returns:
- The child or null if not found
-
_doAdd
-
_doAdd
-
_invokeCustomizedMethod
-
_invokeCustomizedMethodI
-
_invokeCustomizedMethodJ
-
_invokeCustomizedMethodZ
-
_invokeCustomizedMethodB
-
_invokeCustomizedMethodC
-
_invokeCustomizedMethodS
-
_invokeCustomizedMethodF
-
_invokeCustomizedMethodD
-
_doRemove
-
_doRemove
-
_doRemoveZ
-
_hasProperty
-
_getBeanLikeMap
Description copied from interface:XmlHk2ConfigurationBeanReturns a read-only copy of the bean-like map corresponding to the current state of this bean in the default namespace of the document- Specified by:
_getBeanLikeMapin interfaceXmlHk2ConfigurationBean- Returns:
- A copy of the bean-like map associated with this bean
-
_getQNameMap
-
_getParent
Description copied from interface:XmlHk2ConfigurationBeanReturns the parent of this bean, or null if this object is the root of the true- Specified by:
_getParentin interfaceXmlHk2ConfigurationBean- Returns:
- The parent of this object, or null if this is the root of the tree
-
_setParent
When this is called all of the parents can be found and so the namespaces can be determined- Parameters:
parent-
-
_setSelfXmlTag
-
_getSelfNamespace
-
_getSelfXmlTag
-
_getXmlPath
Description copied from interface:XmlHk2ConfigurationBeanReturns the XmlPath for this object- Specified by:
_getXmlPathin interfaceXmlHk2ConfigurationBean- Returns:
- The XmlPath for this object
-
_setInstanceName
-
_getInstanceName
Description copied from interface:XmlHk2ConfigurationBeanReturns the instance path/name for this object- Specified by:
_getInstanceNamein interfaceXmlHk2ConfigurationBean- Returns:
- The instance path/name for this object
-
_setKeyValue
-
_getKeyPropertyName
Description copied from interface:XmlHk2ConfigurationBeanReturns the name of the property that returns the key for this bean, or null if this bean does not have a key property- Specified by:
_getKeyPropertyNamein interfaceXmlHk2ConfigurationBean- Returns:
- The name of the key property for this bean or null if this bean does not have a key property
-
_setClassReflectionHelper
-
_getKeyValue
Description copied from interface:XmlHk2ConfigurationBeanReturns the key value for this object- Specified by:
_getKeyValuein interfaceXmlHk2ConfigurationBean- Returns:
- The instance path/name for this object
-
_setDynamicChangeInfo
-
_setDynamicChangeInfo
public void _setDynamicChangeInfo(XmlRootHandleImpl<?> root, DynamicChangeInfo<?> change, boolean doXmlPathCalculation) Once this is set the dynamic change protocol is in effect, and all paths can be calculated- Parameters:
change- The change control objectdoXmlPathCalculation- if true then this should calculate the xml path at this time (all the parent information must be correct). If this is false it is assumed that this is some sort of copy operation where the xmlPath has been pre-calculated and does not need to be modified
-
_setActive
public void _setActive()Once this has been set the bean is considered active, and so defaulting can happen on the bean -
_getChildrenXmlTags
Read lock must be held- Returns:
- The set of all children tags
-
_shallowCopyFrom
This copy method ONLY copies non-child and non-parent and optionally reference fields and so is not a full copy. The children and parent and reference and lock information need to be filled in later so as not to have links from one tree into another. The read lock of copyMe should be held- Parameters:
copyMe- The non-null bean to copy FROM
-
_changeInHub
public boolean _changeInHub(String propNamespace, String propName, Object propValue, WriteableBeanDatabase wbd) Called under write lock- Parameters:
propName- The name of the property to changepropValue- The new value of the property
-
_changeInHub
Called under write lock- Parameters:
propName- The name of the property to changepropValue- The new value of the property
-
_getChangeControl
Gets the change control information for this bean- Returns:
- the change control information for this bean
-
_getClassReflectionHelper
Returns the reflection helper for this bean- Returns:
- The reflection helper for this bean
-
_setSelfDescriptor
-
_getSelfDescriptor
Description copied from interface:XmlHk2ConfigurationBeanGets the descriptor with which this service was created. May be null if this service is not advertised in a ServiceLocator- Specified by:
_getSelfDescriptorin interfaceXmlHk2ConfigurationBean- Returns:
- The descriptor with which this service was created or null if this service is not advertised in a ServiceLocator
-
__activateChange
public void __activateChange()Write lock must be held -
__rollbackChange
public void __rollbackChange()Write lock must be held -
_getRoot
Gets the root associated with this bean. If this bean has no associated root this will return null- Specified by:
_getRootin interfaceXmlHk2ConfigurationBean- Returns:
- The root of this bean, or null if this bean is not associated with a root
-
_isSet
Description copied from interface:XmlHk2ConfigurationBeanReturns true if the given property is explicitly set, false if the property has not been explicitly set. Will only check the default namespace- Specified by:
_isSetin interfaceXmlHk2ConfigurationBean- Parameters:
propName- The name of the property to check for being set, may not be null- Returns:
- true if the property is explicitly set, false if the property is not explicitly set
-
_isSet
Description copied from interface:XmlHk2ConfigurationBeanReturns true if the given property is explicitly set, false if the property has not been explicitly set- Specified by:
_isSetin interfaceXmlHk2ConfigurationBean- Parameters:
propNamespace- The namespace to find the property in. If null then the default namespacepropName- The name of the property to check for being set, may not be null- Returns:
- true if the property is explicitly set, false if the property is not explicitly set
-
__setAddCost
public void __setAddCost(int addCost) -
__getAddCost
public int __getAddCost() -
__fixAlias
-
toString
-