Package javax.jmdns
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 interface
This 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.ClassDelegate
Returns JmmDNS's class delegate.static void
close()
Closes the instance if still running and discard it.static JmmDNS
Return the instance of the Multihomed Multicast DNS.protected static JmmDNS
Returns a new instance of JmmDNS using the class delegate if it exists.static void
setClassDelegate
(JmmDNS.Factory.ClassDelegate delegate) Assignsdelegate
as JmmDNS's class delegate.
-
Field Details
-
_instance
-
_databaseClassDelegate
-
-
Constructor Details
-
Factory
private Factory()
-
-
Method Details
-
setClassDelegate
Assignsdelegate
as 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
-