Package org.agilewiki.jactor.factory

Examples of org.agilewiki.jactor.factory.Factory


     */
    public JLPCActor newActor(Mailbox mailbox, Actor parent)
            throws Exception {
        StringMapJid imj = (StringMapJid) super.newActor(mailbox, parent);
        if (valueFactory == null) {
            Factory f = (Factory) parent.getMatch(Factory.class);
            valueFactory = f.getActorFactory(valueType);
        }
        imj.valueFactory = valueFactory;
        imj.initialCapacity = initialCapacity;
        return imj;
    }
View Full Code Here


     */
    public JLPCActor newActor(Mailbox mailbox, Actor parent)
            throws Exception {
        MapEntry me = (MapEntry) super.newActor(mailbox, parent);
        if (keyFactory == null) {
            Factory f = (Factory) parent.getMatch(Factory.class);
            keyFactory = f.getActorFactory(keyType);
            valueFactory = f.getActorFactory(valueType);
        }
        me.setFactories(keyFactory, valueFactory);
        return me;
    }
View Full Code Here

     */
    public JLPCActor newActor(Mailbox mailbox, Actor parent)
            throws Exception {
        IntegerMapJid imj = (IntegerMapJid) super.newActor(mailbox, parent);
        if (valueFactory == null) {
            Factory f = (Factory) parent.getMatch(Factory.class);
            valueFactory = f.getActorFactory(valueType);
        }
        imj.valueFactory = valueFactory;
        imj.initialCapacity = initialCapacity;
        return imj;
    }
View Full Code Here

     */
    public JLPCActor newActor(Mailbox mailbox, Actor parent)
            throws Exception {
        LongBMapJid imj = (LongBMapJid) super.newActor(mailbox, parent);
        if (valueFactory == null) {
            Factory f = (Factory) parent.getMatch(Factory.class);
            valueFactory = f.getActorFactory(valueType);
        }
        imj.valueFactory = valueFactory;
        imj.nodeCapacity = nodeCapacity;
        imj.isRoot = isRoot;
        imj.init();
View Full Code Here

     */
    public JLPCActor newActor(Mailbox mailbox, Actor parent)
            throws Exception {
        LongMapJid imj = (LongMapJid) super.newActor(mailbox, parent);
        if (valueFactory == null) {
            Factory f = (Factory) parent.getMatch(Factory.class);
            valueFactory = f.getActorFactory(valueType);
        }
        imj.valueFactory = valueFactory;
        imj.initialCapacity = initialCapacity;
        return imj;
    }
View Full Code Here

     */
    public JLPCActor newActor(Mailbox mailbox, Actor parent)
            throws Exception {
        IntegerBMapJid imj = (IntegerBMapJid) super.newActor(mailbox, parent);
        if (valueFactory == null) {
            Factory f = (Factory) parent.getMatch(Factory.class);
            valueFactory = f.getActorFactory(valueType);
        }
        imj.valueFactory = valueFactory;
        imj.nodeCapacity = nodeCapacity;
        imj.isRoot = isRoot;
        imj.init();
View Full Code Here

     */
    public JLPCActor newActor(Mailbox mailbox, Actor parent)
            throws Exception {
        UnionJid uj = (UnionJid) super.newActor(mailbox, parent);
        if (unionFactories == null) {
            Factory f = (Factory) parent.getMatch(Factory.class);
            ActorFactory[] afs = new ActorFactory[actorTypes.length];
            int i = 0;
            while (i < actorTypes.length) {
                afs[i] = f.getActorFactory(actorTypes[i]);
                i += 1;
            }
            unionFactories = afs;
        }
        assignElementFactories(uj);
View Full Code Here

     */
    public JLPCActor newActor(Mailbox mailbox, Actor parent)
            throws Exception {
        ListJid lj = (ListJid) super.newActor(mailbox, parent);
        if (entryFactory == null) {
            Factory f = (Factory) parent.getMatch(Factory.class);
            entryFactory = f.getActorFactory(entryType);
        }
        lj.entryFactory = entryFactory;
        lj.initialCapacity = initialCapacity;
        return lj;
    }
View Full Code Here

     */
    public JLPCActor newActor(Mailbox mailbox, Actor parent)
            throws Exception {
        TupleJid tj = (TupleJid) super.newActor(mailbox, parent);
        if (tupleFactories == null) {
            Factory f = (Factory) parent.getMatch(Factory.class);
            ActorFactory[] afs = new ActorFactory[actorTypes.length];
            int i = 0;
            while (i < actorTypes.length) {
                afs[i] = f.getActorFactory(actorTypes[i]);
                i += 1;
            }
            tupleFactories = afs;
        }
        tj.tupleFactories = tupleFactories;
View Full Code Here

     */
    public JLPCActor newActor(Mailbox mailbox, Actor parent)
            throws Exception {
        AppJid tj = (AppJid) super.newActor(mailbox, parent);
        if (tupleFactories == null) {
            Factory f = (Factory) parent.getMatch(Factory.class);
            ActorFactory[] afs = new ActorFactory[actorTypes.length];
            int i = 0;
            while (i < actorTypes.length) {
                afs[i] = f.getActorFactory(actorTypes[i]);
                i += 1;
            }
            tupleFactories = afs;
        }
        tj.tupleFactories = tupleFactories;
View Full Code Here

TOP

Related Classes of org.agilewiki.jactor.factory.Factory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.