Examples of Identifiable


Examples of com.sun.corba.se.spi.ior.Identifiable

    {
        return new EncapsulationFactoryBase(TAG_ORB_TYPE.value) {
            public Identifiable readContents( InputStream in )
            {
                int type = in.read_ulong() ;
                Identifiable comp = new ORBTypeComponentImpl( type ) ;
                return comp ;
            }
        } ;
    }
View Full Code Here

Examples of com.sun.corba.se.spi.ior.Identifiable

    {
        return new EncapsulationFactoryBase(TAG_RMI_CUSTOM_MAX_STREAM_FORMAT.value) {
            public Identifiable readContents(InputStream in)
            {
                byte version = in.read_octet() ;
                Identifiable comp = new MaxStreamFormatVersionComponentImpl(version);
                return comp ;
            }
        };
    }
View Full Code Here

Examples of com.sun.corba.se.spi.ior.Identifiable

    public static IdentifiableFactory makeJavaSerializationComponentFactory() {
        return new EncapsulationFactoryBase(
                                ORBConstants.TAG_JAVA_SERIALIZATION_ID) {
            public Identifiable readContents(InputStream in) {
                byte version = in.read_octet();
                Identifiable cmp = new JavaSerializationComponent(version);
                return cmp;
            }
        };
    }
View Full Code Here

Examples of com.sun.corba.se.spi.ior.Identifiable

    public static IdentifiableFactory makeIIOPProfileFactory()
    {
        return new EncapsulationFactoryBase(TAG_INTERNET_IOP.value) {
            public Identifiable readContents( InputStream in )
            {
                Identifiable result = new IIOPProfileImpl( in ) ;
                return result ;
            }
        } ;
    }
View Full Code Here

Examples of com.sun.corba.se.spi.ior.Identifiable

    public static IdentifiableFactory makeIIOPProfileTemplateFactory()
    {
        return new EncapsulationFactoryBase(TAG_INTERNET_IOP.value) {
            public Identifiable readContents( InputStream in )
            {
                Identifiable result = new IIOPProfileTemplateImpl( in ) ;
                return result ;
            }
        } ;
    }
View Full Code Here

Examples of gov.nist.scap.xccdf.document.Identifiable

     * Constructs a string representation of the reference loop
     * @return a string representing the reference loop
     */
    public String getReferenceString() {
        StringBuilder retval = new StringBuilder();
        Identifiable target = null;
        for (Identifiable i : referenceList) {
            if (target == null) target = i;

            retval.append(i.getId());
            retval.append(" -> ");
        }
        if (retval.length() > 0) retval.append(target.getId());
        return retval.toString();
    }
View Full Code Here

Examples of juzu.test.Identifiable

    //
    MockRequestBridge request = client.render();
    List<Scoped> attributes = request.getAttributesHistory();
    assertEquals(1, attributes.size());
    Identifiable car = (Identifiable)attributes.iterator().next().get();
    assertEquals(Identifiable.DESTROYED, car.getStatus());

    //
    long id1 = Registry.<Long>unset("car");
    assertEquals(car.getIdentityHashCode(), id1);
    assertEquals(Identifiable.MANAGED, (int)Registry.<Integer>unset("status"));

    //
    request = client.invoke(Registry.<String>unset("action"));
    attributes = request.getAttributesHistory();
    assertEquals(1, attributes.size());
    car = (Identifiable)attributes.iterator().next().get();
    assertEquals(Identifiable.DESTROYED, car.getStatus());

    //
    long id2 = Registry.<Long>unset("car");
    assertNotSame(id1, id2);
    assertEquals(id2, id2);
    assertEquals(Identifiable.MANAGED, (int)Registry.<Integer>unset("status"));

    //
    request = client.invoke(Registry.<String>unset("resource"));
    attributes = request.getAttributesHistory();
    assertEquals(1, attributes.size());
    car = (Identifiable)attributes.iterator().next().get();
    assertEquals(Identifiable.DESTROYED, car.getStatus());

    //
    long id3 = Registry.<Long>unset("car");
    assertNotSame(id1, id3);
    assertNotSame(id2, id3);
    assertEquals(car.getIdentityHashCode(), id3);
    assertEquals(Identifiable.MANAGED, (int)Registry.<Integer>unset("status"));
  }
View Full Code Here

Examples of org.apache.lenya.ac.Identifiable

                noDuplicates.add(recipients[i]);
            }
        }

        for (Iterator i = noDuplicates.iterator(); i.hasNext();) {
            Identifiable identifiable = (Identifiable) i.next();
            if (identifiable instanceof User) {
                User user = (User) identifiable;
                Message translatedMessage = translateMessage(user.getDefaultMenuLocale(), message);
                notify(user, translatedMessage);
            }
View Full Code Here

Examples of org.apache.lenya.ac.Identifiable

                noDuplicates.add(recipients[i]);
            }
        }

        for (Iterator i = noDuplicates.iterator(); i.hasNext();) {
            Identifiable identifiable = (Identifiable) i.next();
            if (identifiable instanceof User) {
                User user = (User) identifiable;
                Message translatedMessage = translateMessage(user.getDefaultMenuLocale(), message);
                notify(user, translatedMessage);
            }
View Full Code Here

Examples of org.apache.lenya.ac.Identifiable

        if (!this.manager.hasService(MailSender.ROLE)) {
            getLogger().error("Can't send mails - no MailSender service found.");
            return;
        }

        Identifiable sender = translatedMessage.getSender();
        MailSender mailer = null;
        try {
            mailer = (MailSender) this.manager.lookup(MailSender.ROLE);
            if (this.username == null) {
                mailer.setSmtpHost(this.smtpHost);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.