public void setDeployableUnit ( DeployableUnit deployableUnit ) throws AlreadyDeployedException { if ( this . deployableUnit != null ) { throw new IllegalStateException ( "deployable unit already set. du = " + this . deployableUnit ) ; } this . deployableUnit = deployableUnit ; if ( ! addToDeployableUnit ( ) ) { throw new AlreadyDeployedException ( "unable to install du having multiple components with id " + getComponentID ( ) ) ; } }
Specifies the the Deployable Unit this component belongs . This method also sets the reverse relation adding the component to the deployable unit