Package org.apache.geronimo.network.protocol.control

Examples of org.apache.geronimo.network.protocol.control.ControlException


                            return object;
                        }
                    });
        } catch (PrivilegedActionException pae) {
            throw new ControlException(pae.getException());
        }
    }
View Full Code Here


    }

    public Object execute(ControlContext context) throws ControlException {
        Object target = context.retrieve(instanceId);

        if (target == null) throw new ControlException("Missing instance: " + instanceId);
        try {
            Class clazz = target.getClass();
            Method setter = clazz.getMethod("set" + attributeName, new Class[]{attributeValue.getClass()});
            setter = clazz.getMethod("set" + attributeName, new Class[]{attributeValue.getClass()});
            setter.invoke(target, new Object[]{attributeValue});

            return null;
        } catch (NoSuchMethodException e) {
            throw new ControlException("Trying to set an attribute", e);
        } catch (IllegalAccessException e) {
            throw new ControlException("Trying to set an attribute", e);
        } catch (InvocationTargetException e) {
            throw new ControlException("Trying to set an attribute", e);
        }
    }
View Full Code Here

    public Object execute(ControlContext context) throws ControlException {
        Object target = context.retrieve(instanceId);
        Object value = context.retrieve(referenceId);

        if (target == null) throw new ControlException("Missing instance: " + instanceId);
        try {
            Class clazz = target.getClass();
            Method setter = clazz.getMethod("set" + referenceName, new Class[]{value.getClass()});
            setter.invoke(target, new Object[]{value});

            return null;
        } catch (NoSuchMethodException e) {
            throw new ControlException("Trying to set an attribute", e);
        } catch (IllegalAccessException e) {
            throw new ControlException("Trying to set an attribute", e);
        } catch (InvocationTargetException e) {
            throw new ControlException("Trying to set an attribute", e);
        }
    }
View Full Code Here

                            return object;
                        }
                    });
        } catch (PrivilegedActionException pae) {
            throw new ControlException(pae.getException());
        }
    }
View Full Code Here

    }

    public Object execute(ControlContext context) throws ControlException {
        Object target = context.retrieve(instanceId);

        if (target == null) throw new ControlException("Missing instance: " + instanceId);
        try {
            Class clazz = target.getClass();
            Method setter = clazz.getMethod("set" + attributeName, new Class[]{attributeValue.getClass()});
            setter = clazz.getMethod("set" + attributeName, new Class[]{attributeValue.getClass()});
            setter.invoke(target, new Object[]{attributeValue});

            return null;
        } catch (NoSuchMethodException e) {
            throw new ControlException("Trying to set an attribute", e);
        } catch (IllegalAccessException e) {
            throw new ControlException("Trying to set an attribute", e);
        } catch (InvocationTargetException e) {
            throw new ControlException("Trying to set an attribute", e);
        }
    }
View Full Code Here

    public Object execute(ControlContext context) throws ControlException {
        Object target = context.retrieve(instanceId);
        Object value = context.retrieve(referenceId);

        if (target == null) throw new ControlException("Missing instance: " + instanceId);
        try {
            Class clazz = target.getClass();
            Method setter = clazz.getMethod("set" + referenceName, new Class[]{value.getClass()});
            setter.invoke(target, new Object[]{value});

            return null;
        } catch (NoSuchMethodException e) {
            throw new ControlException("Trying to set an attribute", e);
        } catch (IllegalAccessException e) {
            throw new ControlException("Trying to set an attribute", e);
        } catch (InvocationTargetException e) {
            throw new ControlException("Trying to set an attribute", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.network.protocol.control.ControlException

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.