Package javax.jmdns.impl
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 interface
This 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.Factory
private final ConcurrentMap
<JmDNSImpl, DNSTaskStarter> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns DNSTaskStarter's class delegate.void
disposeStarter
(JmDNSImpl jmDNSImpl) Dispose of the DNSTaskStarter instance associated with this JmDNS.static DNSTaskStarter.Factory
Return the instance of the DNSTaskStarter Factory.getStarter
(JmDNSImpl jmDNSImpl) Return the instance of the DNSTaskStarter for the JmDNS.protected static DNSTaskStarter
newDNSTaskStarter
(JmDNSImpl jmDNSImpl) Returns a new instance of DNSTaskStarter using the class delegate if it exists.static void
Assignsdelegate
as DNSTaskStarter's class delegate.
-
Field Details
-
_instance
-
_instances
-
_databaseClassDelegate
-
-
Constructor Details
-
Factory
private Factory()
-
-
Method Details
-
setClassDelegate
Assignsdelegate
as 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
-