Class JmmDNS.Factory
java.lang.Object
javax.jmdns.JmmDNS.Factory
- Enclosing interface:
JmmDNS
JmmDNS.Factory enable the creation of new instance of JmmDNS.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThis interface defines a delegate to the EOClassDescriptionRegister class to enable subclassing. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final AtomicReference<JmmDNS.Factory.ClassDelegate> private static JmmDNS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JmmDNS.Factory.ClassDelegateReturns JmmDNS's class delegate.static voidclose()Closes the instance if still running and discard it.static JmmDNSReturn the instance of the Multihomed Multicast DNS.protected static JmmDNSReturns a new instance of JmmDNS using the class delegate if it exists.static voidsetClassDelegate(JmmDNS.Factory.ClassDelegate delegate) Assignsdelegateas JmmDNS's class delegate.
-
Field Details
-
_instance
-
_databaseClassDelegate
-
-
Constructor Details
-
Factory
private Factory()
-
-
Method Details
-
setClassDelegate
Assignsdelegateas JmmDNS's class delegate. The class delegate is optional.- Parameters:
delegate- The object to set as JmmDNS's class delegate.- See Also:
-
classDelegate
Returns JmmDNS's class delegate.- Returns:
- JmmDNS's class delegate.
- See Also:
-
newJmmDNS
Returns a new instance of JmmDNS using the class delegate if it exists.- Returns:
- new instance of JmmDNS
-
getInstance
Return the instance of the Multihomed Multicast DNS.- Returns:
- the JmmDNS
-
close
Closes the instance if still running and discard it.- Throws:
IOException
-