Package org.apache.geronimo.common.propertyeditor

Examples of org.apache.geronimo.common.propertyeditor.PropertyEditorException


        public void setAsText(String text) {
            if (text != null) {
                String[] parts = text.split("=");
                if (parts.length != 2) {
                    throw new PropertyEditorException("Principal should have the form 'name=class'");
                }
                Principal principal = new Principal();
                principal.setPrincipalName(parts[0]);
                principal.setClassName(parts[1]);
                setValue(principal);
View Full Code Here

TOP

Related Classes of org.apache.geronimo.common.propertyeditor.PropertyEditorException

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.