Example usage for org.apache.commons.collections CursorableLinkedList CursorableLinkedList

List of usage examples for org.apache.commons.collections CursorableLinkedList CursorableLinkedList

Introduction

In this page you can find the example usage for org.apache.commons.collections CursorableLinkedList CursorableLinkedList.

Prototype

CursorableLinkedList

Source Link

Usage

From source file:com.sun.faces.context.FacesContextImpl.java

public void addFacesEvent(FacesEvent event) {
    assertNotReleased();//from w w w .  j  a va2 s  . co  m
    // Validate our preconditions
    if (event == null) {
        throw new NullPointerException(Util.getExceptionMessageString(Util.NULL_EVENT_ERROR_MESSAGE_ID));
    }

    // Add this event to our internal queue
    if (facesEvents == null) {
        facesEvents = new CursorableLinkedList();
    }
    facesEvents.add(event);
    if (log.isDebugEnabled()) {
        String id = event.getComponent().getId();
        if (id == null) {
            id = "<<NONE>>";
        }
        log.debug("Adding FacesEvent[sourceId=" + id + ",type=" + event.getClass().getName());
    }

}