org.glassfish.pfl.dynamic.codegen.impl
Class AttributedObjectBase

java.lang.Object
  extended by org.glassfish.pfl.dynamic.codegen.impl.AttributedObjectBase
All Implemented Interfaces:
AttributedObject, CopyInterceptor
Direct Known Subclasses:
NodeBase

public class AttributedObjectBase
extends Object
implements AttributedObject, CopyInterceptor

An implementation of the AttributedObject interface. This implementation supports lazy copying of AttributedObject instances.


Constructor Summary
AttributedObjectBase()
           
 
Method Summary
 List<Object> attributes()
          Internal method for dynamic attribute support.
 Object get(int index)
          Internal method for dynamic attribute support.
 void postCopy()
           
 void preCopy()
           
 void set(int index, Object obj)
          Internal method for dynamic attribute support.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributedObjectBase

public AttributedObjectBase()
Method Detail

preCopy

public void preCopy()
Specified by:
preCopy in interface CopyInterceptor

postCopy

public void postCopy()
Specified by:
postCopy in interface CopyInterceptor

get

public final Object get(int index)
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 interface AttributedObject

set

public final void set(int index,
                      Object obj)
Description copied from interface: AttributedObject
Internal method for dynamic attribute support. Set the attribute at index to obj.

Specified by:
set in interface AttributedObject

attributes

public final List<Object> 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 interface AttributedObject


Copyright © 2013 Oracle. All Rights Reserved.