Quantcast
Channel: Ignite Realtime : All Content - Openfire Support
Viewing all articles
Browse latest Browse all 4778

How to Import classes from classes folder to Plugin Folder

$
0
0

How do I import the classes I have defined in classes/ folder into my plugins folder.

According to the Plugin Guide, All properties/classes must live in the classes/ file. I have done so. I have tried to reference a class called HandleIncoming.java from my plugin. Eclipse automatically made the imports. However, when I build my pugins, I get an error.

 

package src.java.org.clinton.openfire.plugin;

import classes.HandleIncoming;

@Override    public void initializePlugin(PluginManager manager, File pluginDirectory) {        startSpring();        HandleIncoming.performIncoming();    }

 

package classes;

import java.util.List;

public class HandleIncoming {
    public static void performIncoming() {        String JSON = new FetchNews(NewsItemsID.CULTURE).fetchData();        List<NewsFacade> newsFacades = new ParseNewsData().doParsing(JSON);        new StoreData(newsFacades, NewsItemsID.CULTURE);        System.out.println("Successfully executed for " + NewsItemsID.CULTURE);    }   
}

Thank you.


Viewing all articles
Browse latest Browse all 4778

Latest Images

Trending Articles



Latest Images