Code example for Constructor

Methods: getModifiers

0
      throw new ObjectFactoryException("The Object is null."); 
    } 
    try 
    { 
      final Constructor c = o.getClass().getConstructor(ClassLoaderObjectDescription.EMPTY_PARAMS);
      if (!Modifier.isPublic(c.getModifiers()))
      { 
        throw new ObjectFactoryException 
            ("The given object has no public default constructor. [" + o.getClass() + ']');
      } 
      setParameter("class", o.getClass().getName());
    } 
    catch (Exception e)
    { 
      throw new ObjectFactoryException 
          ("The given object has no default constructor. [" + o.getClass() + ']', e);
    } 
  } 
}