NameRegister.Factory
Date: 2017-02-10

javax.jmdns.impl

## Class NameRegister.Factory

- java.lang.Object
- - javax.jmdns.impl.NameRegister.Factory

- Enclosing interface:
    NameRegister

      public static class NameRegister.Factory
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NameRegister.Factory()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static NameRegister` | `getRegistry()` Returns the name register.
    `static void` | `setRegistry(NameRegister register)` Register a Name register.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NameRegister.Factory

          public NameRegister.Factory()

  - ### Method Detail

    - #### setRegistry

          public static void setRegistry(NameRegister register)
                                  throws java.lang.IllegalStateException

      Register a Name register.
      Parameters:
        `register` - new register
      Throws:
        `java.lang.IllegalStateException` - the register can only be set once

    - #### getRegistry

          public static NameRegister getRegistry()

      Returns the name register.
      Returns:
        name register