Class AttributedObjectBase
java.lang.Object
org.glassfish.pfl.dynamic.codegen.impl.AttributedObjectBase
- All Implemented Interfaces:
AttributedObject
,CopyInterceptor
- Direct Known Subclasses:
NodeBase
An implementation of the AttributedObject interface. This implementation
supports lazy copying of AttributedObject instances.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
delegate
-
attributes
-
-
Constructor Details
-
AttributedObjectBase
public AttributedObjectBase()
-
-
Method Details
-
preCopy
public void preCopy()- Specified by:
preCopy
in interfaceCopyInterceptor
-
postCopy
public void postCopy()- Specified by:
postCopy
in interfaceCopyInterceptor
-
ensure
private void ensure(int index) -
get
Description copied from interface:AttributedObject
Internal method for dynamic attribute support. Return the value of the attribute at index. If the attribute at index is not set, set it to the default value and return the default.- Specified by:
get
in interfaceAttributedObject
-
set
Description copied from interface:AttributedObject
Internal method for dynamic attribute support. Set the attribute at index to obj.- Specified by:
set
in interfaceAttributedObject
-
attributes
Description copied from interface:AttributedObject
Internal method for dynamic attribute support. Return all attributes for this node (may be null).- Specified by:
attributes
in interfaceAttributedObject
-