Package org.xnio

Examples of org.xnio.Option


                final String name = optionProperty.getName();
                final ModelNode propValueModel = optionProperty.getValue();
                final String type = propValueModel.get(TYPE).asString();
                final String optionClassName = this.getClassNameForChannelOptionType(type);
                final String fullyQualifiedOptionName = optionClassName + "." + name;
                final Option option = Option.fromString(fullyQualifiedOptionName, loader);
                final String value = propValueModel.get(EJB3SubsystemModel.VALUE).asString();
                builder.set(option, option.parseValue(value, loader));
            }
            return builder.getMap();
        } else {
            return OptionMap.EMPTY;
        }
View Full Code Here


            final String xnioOptionName = property.getName();
            final String value = property.getValue().asString();

            final String fullyQualifiedOptionName = Options.class.getName() + "." + xnioOptionName;
            // create the XNIO option for the option name
            final Option connectionCreationOption = Option.fromString(fullyQualifiedOptionName, Options.class.getClassLoader());
            // now parse and set the value
            optionMapBuilder.parse(connectionCreationOption, value);
        }
        return optionMapBuilder.getMap();
    }
View Full Code Here

TOP

Related Classes of org.xnio.Option

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.