Class DNSTaskStarter.Factory
java.lang.Object
javax.jmdns.impl.DNSTaskStarter.Factory
- Enclosing interface:
DNSTaskStarter
DNSTaskStarter.Factory enable the creation of new instance of DNSTaskStarter.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThis interface defines a delegate to the DNSTaskStarter class to enable subclassing. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final AtomicReference<DNSTaskStarter.Factory.ClassDelegate> private static DNSTaskStarter.Factoryprivate final ConcurrentMap<JmDNSImpl, DNSTaskStarter> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns DNSTaskStarter's class delegate.voiddisposeStarter(JmDNSImpl jmDNSImpl) Dispose of the DNSTaskStarter instance associated with this JmDNS.static DNSTaskStarter.FactoryReturn the instance of the DNSTaskStarter Factory.getStarter(JmDNSImpl jmDNSImpl) Return the instance of the DNSTaskStarter for the JmDNS.protected static DNSTaskStarternewDNSTaskStarter(JmDNSImpl jmDNSImpl) Returns a new instance of DNSTaskStarter using the class delegate if it exists.static voidAssignsdelegateas DNSTaskStarter's class delegate.
-
Field Details
-
_instance
-
_instances
-
_databaseClassDelegate
-
-
Constructor Details
-
Factory
private Factory()
-
-
Method Details
-
setClassDelegate
Assignsdelegateas DNSTaskStarter's class delegate. The class delegate is optional.- Parameters:
delegate- The object to set as DNSTaskStarter's class delegate.- See Also:
-
classDelegate
Returns DNSTaskStarter's class delegate.- Returns:
- DNSTaskStarter's class delegate.
- See Also:
-
newDNSTaskStarter
Returns a new instance of DNSTaskStarter using the class delegate if it exists.- Parameters:
jmDNSImpl- jmDNS instance- Returns:
- new instance of DNSTaskStarter
-
getInstance
Return the instance of the DNSTaskStarter Factory.- Returns:
- DNSTaskStarter Factory
-
getStarter
Return the instance of the DNSTaskStarter for the JmDNS.- Parameters:
jmDNSImpl- jmDNS instance- Returns:
- the DNSTaskStarter
-
disposeStarter
Dispose of the DNSTaskStarter instance associated with this JmDNS.- Parameters:
jmDNSImpl- jmDNS instance
-