| <!-- |
| /*************************************************************************************************************************** |
| * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations under the License. |
| ***************************************************************************************************************************/ |
| --> |
| |
| ConfigFileStore |
| |
| <p> |
| The {@link oaj.config.store.ConfigFileStore} is the typical store used for configuration files. |
| It provides the following configurable settings: |
| </p> |
| <ul class='javatree'> |
| <li class='jc'>{@link oaj.config.store.ConfigFileStore} |
| <ul> |
| <li class='jm'>{@link oaj.config.store.ConfigFileStore#FILESTORE_charset FILESTORE_charset} |
| <li class='jm'>{@link oaj.config.store.ConfigFileStore#FILESTORE_directory FILESTORE_directory} |
| <li class='jm'>{@link oaj.config.store.ConfigFileStore#FILESTORE_updateOnWrite FILESTORE_updateOnWrite} |
| <li class='jm'>{@link oaj.config.store.ConfigFileStore#FILESTORE_useWatcher FILESTORE_useWatcher} |
| <li class='jm'>{@link oaj.config.store.ConfigFileStore#FILESTORE_watcherSensitivity FILESTORE_watcherSensitivity} |
| </ul> |
| </ul> |
| |
| <h5 class='figure'>Example:</h5> |
| <p class='bpcode w800'> |
| <jc>// Create a config store with a watcher thread and high sensitivity.</jc> |
| ConfigFileStore fs = ConfigFileStore.<jsm>create</jsm>().directory(<js>"configs"</js>).useWatcher().watcherSensitivity(<jsf>HIGH</jsf>).build(); |
| |
| <jc>// Create a config using the store defined above.</jc> |
| Config c = Config.<jsm>create</jsm>(<js>"MyConfig.cfg"</js>).store(fs).build(); |
| </p> |