Package com.sk89q.util.yaml

Examples of com.sk89q.util.yaml.YAMLNode


            // Do we have an existing session?
            T session = type.cast(userSessions.get(type));
            if (session == null) {
                session = getSessionFactory(type).createSession(user);
                if (session != null) {
                    YAMLNode node = getSessionConfiguration(getType(user.getClass()), UUIDUtil.toUniqueString(user), type, false);
                    if (node != null) {
                       session.load(new YAMLNodeConfigurationNode(node));
                    }
                    session.handleReconnect(user);
                    userSessions.put(type, session);
View Full Code Here


        if (proc == null) {
            return null;
        }

        String className = sessType.getCanonicalName().replaceAll("\\.", "/");
        YAMLNode sessionNode = proc.getNode(className);
        if (sessionNode == null && create) {
            sessionNode = proc.addNode(className);
        }
        return sessionNode;
    }
View Full Code Here

TOP

Related Classes of com.sk89q.util.yaml.YAMLNode

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.