protected void createConstructorWithParameter(CtClass[] parameters)
			throws DeploymentException {
		CtConstructor constructorWithParameter = new CtConstructor(parameters,
				sbbConcreteClass);
		String constructorBody = "{" + "this();";
		/*
		 * for (int i = 0; i < parameters.length; i++) { String parameterName =
		 * parameters[i].getName(); parameterName =
		 * parameterName.substring(parameterName .lastIndexOf(".") + 1); String
		 * firstCharLowerCase = parameterName.substring(0, 1) .toLowerCase();
		 * parameterName = firstCharLowerCase.concat(parameterName
		 * .substring(1));
		 * 
		 * int paramNumber = i + 1; constructorBody += parameterName + "=$" +
		 * paramNumber + ";"; }
		 */
		constructorBody += "this.setSbbEntity($1);";
		constructorBody += "}";
		try {
			sbbConcreteClass.addConstructor(constructorWithParameter);
			constructorWithParameter.setBody(constructorBody);
			if (logger.isTraceEnabled()) {
	            logger.trace("ConstructorWithParameter created");
			}
		} catch (CannotCompileException e) {
			throw new DeploymentException(e.getMessage(), e);
		}
	}
protected void createConstructorWithParameter ( CtClass [ ] parameters ) throws DeploymentException { CtConstructor constructorWithParameter = new CtConstructor ( parameters , sbbConcreteClass ) ; String constructorBody = "{" + "this();" ; constructorBody += "this.setSbbEntity($1);" ; constructorBody += "}" ; try { sbbConcreteClass . addConstructor ( constructorWithParameter ) ; constructorWithParameter . setBody ( constructorBody ) ; if ( logger . isTraceEnabled ( ) ) { logger . trace ( "ConstructorWithParameter created" ) ; } } catch ( CannotCompileException e ) { throw new DeploymentException ( e . getMessage ( ) , e ) ; } }
Creates a constructor with parameters <BR>
For every parameter a field of the same class is created in the concrete
class And each field is gonna be initialized with the corresponding
parameter

@param parameters
the parameters of the constructor to add
@throws DeploymentException