Examples of UuidGenerator


Examples of com.alibaba.citrus.service.requestcontext.session.idgen.uuid.impl.UUIDGenerator

        private void init() {
            cookieEnabled = defaultIfNull(cookieEnabled, COOKIE_ENABLED_DEFAULT);
            urlEncodeEnabled = defaultIfNull(urlEncodeEnabled, URL_ENCODE_ENABLED_DEFAULT);

            if (generator == null) {
                generator = new UUIDGenerator();

                if (generator instanceof InitializingBean) {
                    try {
                        ((InitializingBean) generator).afterPropertiesSet();
                    } catch (Exception e) {
View Full Code Here

Examples of com.nearinfinity.honeycomb.mysql.generators.UUIDGenerator

import java.util.UUID;

public class UtilTest {
    @Test
    public void testUUIDBytes() throws Exception {
        for (UUID uuid : Iterables.toIterable(new UUIDGenerator())) {
            Assert.assertEquals(uuid, Util.bytesToUUID(Util.UUIDToBytes(uuid)));
        }
    }
View Full Code Here

Examples of com.sun.enterprise.util.uuid.UuidGenerator

       
        //in the future can set other implementations
        //of UuidGenerator in server.xml
        //even if not set it defaults to UuidGeneratorImpl
        ServerConfigLookup lookup = new ServerConfigLookup();
        UuidGenerator generator = lookup.getUuidGeneratorFromConfig();
        mgr.setUuidGenerator(generator);
       
        //for intra-vm session locking
        _logger.finest("sctx.restrictedSetPipeline(new SessionLockingStandardPipeline(sctx))");
        StandardContext sctx = (StandardContext) ctx;
View Full Code Here

Examples of com.sun.enterprise.util.uuid.UuidGenerator

       
        //in the future can set other implementations
        //of UuidGenerator in server.xml
        //even if not set it defaults to UuidGeneratorImpl
        ServerConfigLookup lookup = new ServerConfigLookup();
        UuidGenerator generator = lookup.getUuidGeneratorFromConfig();
        mgr.setUuidGenerator(generator);
        if(_logger.isLoggable(Level.FINEST)) {
            _logger.finest("UUID_GENERATOR = " + generator);
        }
       
View Full Code Here

Examples of com.sun.enterprise.util.uuid.UuidGenerator

       
        //in the future can set other implementations
        //of UuidGenerator in server.xml
        //even if not set it defaults to UuidGeneratorImpl
        ServerConfigLookup lookup = new ServerConfigLookup();
        UuidGenerator generator = lookup.getUuidGeneratorFromConfig();
        mgr.setUuidGenerator(generator);
        if(_logger.isLoggable(Level.FINEST)) {
            _logger.finest("UUID_GENERATOR = " + generator);
        }
       
View Full Code Here

Examples of com.sun.enterprise.util.uuid.UuidGenerator

       
        //in the future can set other implementations
        //of UuidGenerator in server.xml
        //even if not set it defaults to UuidGeneratorImpl
        ServerConfigLookup lookup = new ServerConfigLookup();
        UuidGenerator generator = lookup.getUuidGeneratorFromConfig();
        mgr.setUuidGenerator(generator);
        if(_logger.isLoggable(Level.FINEST)) {
            _logger.finest("UUID_GENERATOR = " + generator);
        }
       
View Full Code Here

Examples of com.sun.enterprise.util.uuid.UuidGenerator

       
        //in the future can set other implementations
        //of UuidGenerator in server.xml
        //even if not set it defaults to UuidGeneratorImpl
        ServerConfigLookup lookup = new ServerConfigLookup();
        UuidGenerator generator = lookup.getUuidGeneratorFromConfig();
        mgr.setUuidGenerator(generator);
       
        //for intra-vm session locking
        _logger.finest("sctx.restrictedSetPipeline(new SessionLockingStandardPipeline(sctx))");
        StandardContext sctx = (StandardContext) ctx;
View Full Code Here

Examples of com.sun.enterprise.util.uuid.UuidGenerator

       
        //in the future can set other implementations
        //of UuidGenerator in server.xml
        //even if not set it defaults to UuidGeneratorImpl
        ServerConfigLookup lookup = new ServerConfigLookup();
        UuidGenerator generator = lookup.getUuidGeneratorFromConfig();
        mgr.setUuidGenerator(generator);
       
        //for intra-vm session locking
        _logger.finest("sctx.restrictedSetPipeline(new SessionLockingStandardPipeline(sctx))");
        StandardContext sctx = (StandardContext) ctx;
View Full Code Here

Examples of com.sun.enterprise.util.uuid.UuidGenerator

    /**
    * Get the UuidGenerator implementation class from server.xml.
    * 7.0 xpath was "/server/availability-service/persistence-store/property[@name='uuid-impl-class']";
    */
    public UuidGenerator getUuidGeneratorFromConfig() {
      UuidGenerator generator = new UuidGeneratorImpl();
      String generatorImplClassName =
        this.getUuidGeneratorImplClassFromConfig()
      try {
          generator =
                (UuidGenerator) (Class.forName(generatorImplClassName)).newInstance();
View Full Code Here

Examples of com.sun.enterprise.util.uuid.UuidGenerator

        ctx.setManager(mgr);

        // START CR 6275709
        if (sessionIdGeneratorClassname != null) {
            try {
                UuidGenerator generator = (UuidGenerator)
                    Class.forName(sessionIdGeneratorClassname).newInstance();
                mgr.setUuidGenerator(generator);
            } catch (Exception ex) {
                _logger.log(Level.SEVERE,
                            "Unable to load session uuid generator "
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.