addDefaultImplementation(Long.class, long.class);
}
public void addDefaultImplementation(final Class<?> defaultImplementation, final Class<?> ofType) {
if (defaultImplementation != null && defaultImplementation.isInterface()) {
throw new InitializationException("Default implementation is not a concrete class: "
+ defaultImplementation.getName());
}
typeToImpl.put(ofType, defaultImplementation);
implToType.put(defaultImplementation, ofType);
}