Requer um construtor padrão em java?
Existe alguma maneira deexigir que uma classe tem um construtor padrão (sem parâmetro),a parte, de lado de usar uma verificação de reflexão como o seguinte? (o seguinte iria funcionar, mas é hacky e a reflexão é lenta)
boolean valid = false;
for(Constructor<?> c : TParse.class.getConstructors())
{
if(c.getParameterTypes().length == 0) {
valid = true;
break;
}
}
if(!valid)
throw new MissingDefaultConstructorException(...);