protected void createDefaultConstructor ( ) throws DeploymentException { CtConstructor defaultConstructor = new CtConstructor ( null , sbbConcreteClass ) ; // We need a "do nothing" constructor because the // convergence name creation method may need to actually // create the object instance to run the method that // creates the convergence name. String constructorBody = "{ }" ; try { defaultConstructor . setBody ( constructorBody ) ; sbbConcreteClass . addConstructor ( defaultConstructor ) ; logger . trace ( "DefaultConstructor created" ) ; } catch ( CannotCompileException e ) { throw new DeploymentException ( e . getMessage ( ) , e ) ; } }
Create a default constructor on the Sbb Concrete Class