You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

package-info.java 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright (c) 2006-2014 DMDirc Developers
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a copy
  5. * of this software and associated documentation files (the "Software"), to deal
  6. * in the Software without restriction, including without limitation the rights
  7. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. * copies of the Software, and to permit persons to whom the Software is
  9. * furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  19. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  20. * SOFTWARE.
  21. */
  22. /**
  23. * Deals with client configuration and preferences.
  24. *
  25. * DMDirc's configuration system is based upon a set of 'identities'. Each identity has a specific
  26. * target which controls which elements of the client it is applied to. Identities can be targeted
  27. * to the client as a whole, and individual networks, servers or channels. Identities may also
  28. * specify an order, which controls in which order they are checked when looking up a configuration
  29. * setting.
  30. *
  31. * Most of the time configuration settings need to be sourced from multiple identities. For example,
  32. * channel settings will come from the channel's identities if any exist and if any contain the
  33. * setting in question. Failing that, they will come from the server's identities, then the
  34. * network's, and finally the global identities. This ordering and lookup behaviour is captured in
  35. * the {@link ConfigManager} class, which can determine which identities should be used in a
  36. * specific context and then use those to look up settings appropriately.
  37. *
  38. * Identities are all stored on disk under the 'identities' directory in the user's DMDirc profile.
  39. * Default identities in this package are extracted automatically by the {@link IdentityManager} if
  40. * they do not exist. Identities use the DMDirc {@link com.dmdirc.util.io.ConfigFile} file format.
  41. */
  42. package com.dmdirc.config;