public static Map<String, Object> getDefaults(String className) { if (className == null) { /* Returns a new clone of the empty helper. This allows any parent objects to update the map key/values without polluting the EMPTY_HELPER map. */ return (Map<String, Object>) EMPTY_HELPER.clone(); } if (!DEFAULTS.containsKey(className)) { Object object = instantiateObject(className); if (object != null && object instanceof TransportConfigurationHelper) { DEFAULTS.put(className, ((TransportConfigurationHelper) object).getDefaults()); } else { DEFAULTS.put(className, EMPTY_HELPER); } } /* We need to return a copy of the default Map. This means the defaults parent is able to update the map without modifying the original */ return cloneDefaults(DEFAULTS.get(className)); }
public static Map<String, Object> getDefaults(String className) { if (className == null) { /* Returns a new clone of the empty helper. This allows any parent objects to update the map key/values without polluting the EMPTY_HELPER map. */ return (Map<String, Object>) EMPTY_HELPER.clone(); } if (!DEFAULTS.containsKey(className)) { Object object = instantiateObject(className); if (object != null && object instanceof TransportConfigurationHelper) { DEFAULTS.put(className, ((TransportConfigurationHelper) object).getDefaults()); } else { DEFAULTS.put(className, EMPTY_HELPER); } } /* We need to return a copy of the default Map. This means the defaults parent is able to update the map without modifying the original */ return cloneDefaults(DEFAULTS.get(className)); }
public static Map<String, Object> getDefaults(String className) { if (className == null) { /* Returns a new clone of the empty helper. This allows any parent objects to update the map key/values without polluting the EMPTY_HELPER map. */ return (Map<String, Object>) EMPTY_HELPER.clone(); } if (!DEFAULTS.containsKey(className)) { Object object = instantiateObject(className); if (object != null && object instanceof TransportConfigurationHelper) { DEFAULTS.put(className, ((TransportConfigurationHelper) object).getDefaults()); } else { DEFAULTS.put(className, EMPTY_HELPER); } } /* We need to return a copy of the default Map. This means the defaults parent is able to update the map without modifying the original */ return cloneDefaults(DEFAULTS.get(className)); }
public static Map<String, Object> getDefaults(String className) { if (className == null) { /* Returns a new clone of the empty helper. This allows any parent objects to update the map key/values without polluting the EMPTY_HELPER map. */ return (Map<String, Object>) EMPTY_HELPER.clone(); } if (!DEFAULTS.containsKey(className)) { Object object = instantiateObject(className); if (object != null && object instanceof TransportConfigurationHelper) { DEFAULTS.put(className, ((TransportConfigurationHelper) object).getDefaults()); } else { DEFAULTS.put(className, EMPTY_HELPER); } } /* We need to return a copy of the default Map. This means the defaults parent is able to update the map without modifying the original */ return cloneDefaults(DEFAULTS.get(className)); }
public static Map<String, Object> getDefaults(String className) { if (className == null) { /* Returns a new clone of the empty helper. This allows any parent objects to update the map key/values without polluting the EMPTY_HELPER map. */ return (Map<String, Object>) EMPTY_HELPER.clone(); } if (!DEFAULTS.containsKey(className)) { Object object = instantiateObject(className); if (object != null && object instanceof TransportConfigurationHelper) { DEFAULTS.put(className, ((TransportConfigurationHelper) object).getDefaults()); } else { DEFAULTS.put(className, EMPTY_HELPER); } } /* We need to return a copy of the default Map. This means the defaults parent is able to update the map without modifying the original */ return cloneDefaults(DEFAULTS.get(className)); }
public static Map<String, Object> getDefaults(String className) { if (className == null) { /* Returns a new clone of the empty helper. This allows any parent objects to update the map key/values without polluting the EMPTY_HELPER map. */ return (Map<String, Object>) EMPTY_HELPER.clone(); } if (!DEFAULTS.containsKey(className)) { Object object = instantiateObject(className); if (object != null && object instanceof TransportConfigurationHelper) { DEFAULTS.put(className, ((TransportConfigurationHelper) object).getDefaults()); } else { DEFAULTS.put(className, EMPTY_HELPER); } } /* We need to return a copy of the default Map. This means the defaults parent is able to update the map without modifying the original */ return cloneDefaults(DEFAULTS.get(className)); }
public static Map<String, Object> getDefaults(String className) { if (className == null) { /* Returns a new clone of the empty helper. This allows any parent objects to update the map key/values without polluting the EMPTY_HELPER map. */ return (Map<String, Object>) EMPTY_HELPER.clone(); } if (!DEFAULTS.containsKey(className)) { Object object = instantiateObject(className); if (object != null && object instanceof TransportConfigurationHelper) { DEFAULTS.put(className, ((TransportConfigurationHelper) object).getDefaults()); } else { DEFAULTS.put(className, EMPTY_HELPER); } } /* We need to return a copy of the default Map. This means the defaults parent is able to update the map without modifying the original */ return cloneDefaults(DEFAULTS.get(className)); }