public void process ( SleeComponentWithUsageParametersInterface component ) throws DeploymentException { ClassPool classPool = component . getClassPool ( ) ; String deploymentDir = component . getDeploymentDir ( ) . getAbsolutePath ( ) ; Class < ? > usageParametersInterface = component . getUsageParametersInterface ( ) ; if ( usageParametersInterface != null ) { try { // generate the concrete usage param set class component . setUsageParametersConcreteClass ( new ConcreteUsageParameterClassGenerator ( usageParametersInterface . getName ( ) , deploymentDir , classPool ) . generateConcreteUsageParameterClass ( ) ) ; if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( "Generated usage parameter impl class for " + component ) ; } // generate the mbeans new ConcreteUsageParameterMBeanGenerator ( component ) . generateConcreteUsageParameterMBean ( ) ; if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( "Generated usage mbean (interface and impl) for " + component ) ; } } catch ( DeploymentException ex ) { throw ex ; } catch ( Exception ex ) { throw new DeploymentException ( "Failed to generate " + component + " usage parameter class" , ex ) ; } } }
Generates classes for a slee component which defines usage parameters