The goal is to have lightweight object for really simple way to limit memory overhead, I faced this problem while optimizing an EclipseRCP application with draw2D, we replace all Label by primitive call to drawString to limit number of overall object created to be compliant with the 1.4GB heap limit.
Seb
--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes JRebirth Developers.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse jrebirth-develo...@googlegroups.com.
Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
public abstract class AbstractSimpleModel<N extends Node> extends AbstractWaveReady<Model> implements Model {/** The root model not null for inner model. */private Model rootModel;/** The root node. */private N rootNode;/*** {@inheritDoc}*/@Overridepublic final void ready() throws CoreException {// Initialize the current modelinitialize();// Prepare the root nodethis.rootNode = prepareNode();}/*** Prepare the root node.** With simple model no view neither controller are created.<br />* You must manage them yourself.** @return the model root node*/protected abstract N prepareNode();/*** Initialize the model.** @throws CoreException if the creation of the view fails*/protected void initialize() throws CoreException {customInitialize();}/*** Initialize method to implement for adding custom processes.*/protected abstract void customInitialize();/*** {@inheritDoc}*/@Overridepublic N getRootNode() {return this.rootNode;}/*** {@inheritDoc}*/@Overridepublic Model getRootModel() {return this.rootModel;}/*** {@inheritDoc}*/@Overridepublic void setRootModel(final Model rootModel) {this.rootModel = rootModel;}/*** {@inheritDoc}*/@Overrideprotected abstract void processAction(final Wave wave);/*** {@inheritDoc}*/@Overrideprotected void finalize() throws Throwable {getLocalFacade().getGlobalFacade().trackEvent(JRebirthEventType.DESTROY_MODEL, null, this.getClass());super.finalize();}}
--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes JRebirth Developers.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse jrebirth-develo...@googlegroups.com.
Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse jrebirth-developers+unsub...@googlegroups.com.
Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse jrebirth-develo...@googlegroups.com.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse jrebirth-developers+unsubscribe...@googlegroups.com.