Package javax.jmdns
Class NetworkTopologyDiscovery.Factory
java.lang.Object
javax.jmdns.NetworkTopologyDiscovery.Factory
- Enclosing interface:
NetworkTopologyDiscovery
NetworkTopologyDiscovery.Factory enable the creation of new instance of NetworkTopologyDiscovery.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
This interface defines a delegate to the NetworkTopologyDiscovery.Factory class to enable subclassing. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final AtomicReference
<NetworkTopologyDiscovery.Factory.ClassDelegate> private static NetworkTopologyDiscovery
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns NetworkTopologyDiscovery's class delegate.static NetworkTopologyDiscovery
Return the instance of the Multihomed Multicast DNS.protected static NetworkTopologyDiscovery
Returns a new instance of NetworkTopologyDiscovery using the class delegate if it exists.static void
Assignsdelegate
as NetworkTopologyDiscovery's class delegate.
-
Field Details
-
_instance
-
_databaseClassDelegate
private static final AtomicReference<NetworkTopologyDiscovery.Factory.ClassDelegate> _databaseClassDelegate
-
-
Constructor Details
-
Factory
private Factory()
-
-
Method Details
-
setClassDelegate
Assignsdelegate
as NetworkTopologyDiscovery's class delegate. The class delegate is optional.- Parameters:
delegate
- The object to set as NetworkTopologyDiscovery's class delegate.- See Also:
-
classDelegate
Returns NetworkTopologyDiscovery's class delegate.- Returns:
- NetworkTopologyDiscovery's class delegate.
- See Also:
-
newNetworkTopologyDiscovery
Returns a new instance of NetworkTopologyDiscovery using the class delegate if it exists.- Returns:
- new instance of NetworkTopologyDiscovery
-
getInstance
Return the instance of the Multihomed Multicast DNS.- Returns:
- the JmmDNS
-