Package javax.jmdns
Class JmmDNS.Factory
- java.lang.Object
-
- javax.jmdns.JmmDNS.Factory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceJmmDNS.Factory.ClassDelegateThis interface defines a delegate to the EOClassDescriptionRegister class to enable subclassing.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JmmDNS.Factory.ClassDelegateclassDelegate()Returns JmmDNS's class delegate.static voidclose()Closes the instance if still running and discard it.static JmmDNSgetInstance()Return the instance of the Multihomed Multicast DNS.protected static JmmDNSnewJmmDNS()Returns a new instance of JmmDNS using the class delegate if it exists.static voidsetClassDelegate(JmmDNS.Factory.ClassDelegate delegate)Assignsdelegateas JmmDNS's class delegate.
-
-
-
Method Detail
-
setClassDelegate
public static void setClassDelegate(JmmDNS.Factory.ClassDelegate delegate)
Assignsdelegateas JmmDNS's class delegate. The class delegate is optional.- Parameters:
delegate- The object to set as JmmDNS's class delegate.- See Also:
classDelegate(),JmmDNS.Factory.ClassDelegate
-
classDelegate
public static JmmDNS.Factory.ClassDelegate classDelegate()
Returns JmmDNS's class delegate.- Returns:
- JmmDNS's class delegate.
- See Also:
setClassDelegate(ClassDelegate anObject),JmmDNS.Factory.ClassDelegate
-
newJmmDNS
protected static JmmDNS newJmmDNS()
Returns a new instance of JmmDNS using the class delegate if it exists.- Returns:
- new instance of JmmDNS
-
getInstance
public static JmmDNS getInstance()
Return the instance of the Multihomed Multicast DNS.- Returns:
- the JmmDNS
-
close
public static void close() throws IOExceptionCloses the instance if still running and discard it.- Throws:
IOException
-
-