|
|
|
@ -72,7 +72,11 @@ public class PojoInstantiator implements Instantiator, Serializable {
|
|
|
|
|
|
|
|
|
|
public Object instantiate() { |
|
|
|
|
if ( isAbstract ) { |
|
|
|
|
throw new InstantiationException( "Cannot instantiate abstract class or interface: ", mappedClass ); |
|
|
|
|
try { |
|
|
|
|
return Class.forName("com.fr.schedule.base.entity.output.DefaultOutputEntity").newInstance(); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
throw new InstantiationException("class not found: ", mappedClass); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else if ( optimizer != null ) { |
|
|
|
|
return optimizer.newInstance(); |
|
|
|
|