public void wire()

in resolver/src/main/java/org/apache/james/jspf/wiring/WiringServiceTable.java [39:59]


    public void wire(Object component) throws WiringServiceException {
        Iterator<Class<?>> i = keySet().iterator();
        while (i.hasNext()) {
            Class<?> enablingClass = i.next();
            if (enablingClass.isInstance(component)) {
                Method[] m = enablingClass.getDeclaredMethods();
                if (m!=null && m.length == 1 && m[0] != null) {
                    try {
                        m[0].invoke(component, new Object[] {get(enablingClass)});
                    } catch (IllegalArgumentException e) {
                        throw new WiringServiceException("Illegal argument invoking enabled service: "+enablingClass.toString(), e);
                    } catch (InvocationTargetException e) {
                        throw new WiringServiceException("Unable to invoke enabled service: "+enablingClass.toString(), e);
                    } catch (IllegalAccessException e) {
                        throw new WiringServiceException("Unable to invoke enabled service: "+enablingClass.toString(), e);
                    }
                }
            }
        }

    }