Package org.xmpp.component

Examples of org.xmpp.component.Component


        // Do not load & start any component if in setup mode
        if (setupMode) {
            return;
        }
        manager.getLog().debug("Loading component: " + componentDir.getName());
        Component component = null;
        try {
            File componentConfig = new File(componentDir, "component.xml");
            if (componentConfig.exists()) {
                SAXReader saxReader = new SAXReader();
                Document componentXML = saxReader.read(componentConfig);
View Full Code Here


     *
     * @param componentName the name of the component to unload.
     */
    public void unloadComponent(String componentName) {
        manager.getLog().debug("Unloading component " + componentName);
        Component component = components.get(componentName);
        if (component == null) {
            return;
        }
        File webXML = new File(componentDirectory + File.separator + componentName +
                File.separator + "web" + File.separator + "web.xml");
View Full Code Here

        public List<Component> getComponents() {
            return components;
        }

        private Component getNextComponent() {
            Component component;
            synchronized (components) {
                component = components.get(0);
                Collections.rotate(components, 1);
            }
            return component;
View Full Code Here

        public JID getAddress() {
            return jid;
        }

        public void process(Packet packet) throws PacketException {
            Component component = getNextComponent();
            component.processPacket(packet);
        }
View Full Code Here

TOP

Related Classes of org.xmpp.component.Component

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.