org.glassfish.grizzly.attributes
Interface IndexedAttributeAccessor

All Known Implementing Classes:
IndexedAttributeHolder.IndexedAttributeAccessorImpl

public interface IndexedAttributeAccessor

The interface declares, that AttributeHolder supports indexed Attribute access.

See Also:
AttributeHolder

Method Summary
 java.lang.Object getAttribute(int index)
          Internal method for dynamic attribute support.
 void setAttribute(int index, java.lang.Object value)
          Internal method for dynamic attribute support.
 

Method Detail

getAttribute

java.lang.Object getAttribute(int index)
Internal method for dynamic attribute support. Return the value of the attribute by index. If the attribute with such index is not set, set it to the default value and return the default.


setAttribute

void setAttribute(int index,
                  java.lang.Object value)
Internal method for dynamic attribute support. Set the attribute with the index to value.



Copyright © 2012 Oracle Corporation. All Rights Reserved.