Deadwinter (deadwinter) wrote in boricuas,
Deadwinter
deadwinter
boricuas

Lechon.java

import pr.animal.lechon;
import javax.cooking.pr.*;
import pr.factories.lechonera;

/**
Only two or three people will get this.
Refer to control villancico "ElLechonSeCoge.doc"
for functional spec
*/
public class LechonUntil {

public void prepare() throws InvalidPernilException{

Lechon lechon = Lechonera.getLechonInstance();

Knife knife = (Knife)System.getInstance(Knife.class);

try {
lechon = (Lechon)knife.kill(lechon);

Brush brush = new StiffBrush();
Bucket maBuket = new Bucket();

lechon = PorkUtils.peel(lechon, brush, maBuket);

Vara vara = Lechonera.getVaraInstance();
vara.putLechon(lechon);

Candela candela = new Candela();
vara.daCandela(candela);


catch (Exception e) {
//go for chinese instead
throw new InvalidPernilException(e);
}
}
}
  • Post a new comment

    Error

    default userpic
  • 1 comment