Constructor that takes a Store object. @param store the Store that holds this folder
(Store store)
| 118 | * @param store the Store that holds this folder |
| 119 | */ |
| 120 | protected Folder(Store store) { |
| 121 | this.store = store; |
| 122 | |
| 123 | // create or choose the appropriate event queue |
| 124 | Session session = store.getSession(); |
| 125 | String scope = |
| 126 | session.getProperties().getProperty("mail.event.scope", "folder"); |
| 127 | Executor executor = |
| 128 | (Executor)session.getProperties().get("mail.event.executor"); |
| 129 | if (scope.equalsIgnoreCase("application")) |
| 130 | q = EventQueue.getApplicationEventQueue(executor); |
| 131 | else if (scope.equalsIgnoreCase("session")) |
| 132 | q = session.getEventQueue(); |
| 133 | else if (scope.equalsIgnoreCase("store")) |
| 134 | q = store.getEventQueue(); |
| 135 | else // if (scope.equalsIgnoreCase("folder")) |
| 136 | q = new EventQueue(executor); |
| 137 | } |
| 138 | |
| 139 | /** |
| 140 | * Returns the name of this Folder. <p> |
nothing calls this directly
no test coverage detected