/** * Start this Engine component. * * @exception org.apache.catalina.LifecycleException if a startup error occurs */ public void start() throws LifecycleException { // Log our server identification information System.out.println(ServerInfo.getServerInfo()); // Standard container startup super.start(); }
@Override public void detectAndSendChanges() { super.detectAndSendChanges(); for (int i = 0; i < this.crafters.size(); ++i) { ICrafting craft = (ICrafting) this.crafters.get(i); if (this.lastInternalStorage != this.incinerator.getEnergyStored(null)) { craft.sendProgressBarUpdate(this, 0, this.incinerator.getEnergyStored(null)); } } this.lastInternalStorage = this.incinerator.getEnergyStored(null); }
@Override public void addCraftingToCrafters(ICrafting craft) { super.addCraftingToCrafters(craft); craft.sendProgressBarUpdate(this, 0, this.incinerator.getEnergyStored(null)); }
public static <T> T getComponent(java.lang.Class<T> tClass) { return instance == null ? null : instance.getBaseComponent(tClass); }
/** * Add a default Mapper implementation if none have been configured explicitly. * * @param mapperClass The default mapper class name to add */ protected void addDefaultMapper(String mapperClass) { super.addDefaultMapper(this.mapperClass); }
/** * Add a child Container, only if the proposed child is an implementation of Host. * * @param child Child container to be added */ public void addChild(Container child) { if (!(child instanceof Host)) throw new IllegalArgumentException(sm.getString("standardEngine.notHost")); super.addChild(child); }