Package jmri.jmrix.dccpp.dccppovertcp
Class Server.Initializer
- java.lang.Object
 - 
- jmri.implementation.AbstractInstanceInitializer
 - 
- jmri.jmrix.dccpp.dccppovertcp.Server.Initializer
 
 
 
- 
- All Implemented Interfaces:
 InstanceInitializer
- Enclosing class:
 - Server
 
public static class Server.Initializer extends AbstractInstanceInitializer
 
- 
- 
Constructor Summary
Constructors Constructor Description Initializer() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> java.lang.ObjectgetDefault(java.lang.Class<T> type)The default implementation always throws an IllegalArgumentException.java.util.Set<java.lang.Class<?>>getInitalizes()The default implementation returns an empty set. 
 - 
 
- 
- 
Constructor Detail
- 
Initializer
public Initializer()
 
 - 
 
- 
Method Detail
- 
getDefault
public <T> java.lang.Object getDefault(java.lang.Class<T> type)
Description copied from class:AbstractInstanceInitializerThe default implementation always throws an IllegalArgumentException. If called by an overriding method, the last line of the overriding method should bereturn super.getDefault(type);. Provide a default instance of the given class.Note calling this method twice for the same class should not be expected to return the same instance; however, there is no guarantee that the same instance will not be returned for two calls to this method.
- Specified by:
 getDefaultin interfaceInstanceInitializer- Overrides:
 getDefaultin classAbstractInstanceInitializer- Type Parameters:
 T- the class to get the default for- Parameters:
 type- the class to get the default for- Returns:
 - the newly created default for the given class
 
 
- 
getInitalizes
public java.util.Set<java.lang.Class<?>> getInitalizes()
Description copied from class:AbstractInstanceInitializerThe default implementation returns an empty set. Get the set of classes for which this InstanceInitializer can provide default instances for.- Specified by:
 getInitalizesin interfaceInstanceInitializer- Overrides:
 getInitalizesin classAbstractInstanceInitializer- Returns:
 - the set of classes this InstanceInitalizer supports; if empty,
         
InstanceInitializer.getDefault(java.lang.Class)will never be called. 
 
 - 
 
 -