Package org.hive.container.manifest

Examples of org.hive.container.manifest.HiveMethod


        return new JarReader().readFile(jarLocation, "interface/" + page + suffix);
    }

    private HiveMethod getApplicationMethod(String name) {
        HiveMethod hiveMethod = null;

        for (HiveMethod applicationMethod : applicationMethods) {
            if (applicationMethod.getName().equals(name)) {
                hiveMethod = applicationMethod;
                break;
View Full Code Here


     * @param name The name of the method
     * @param args An arguments of the method
     * @return Response of the invoked method
     */
    public Object invokeMethod(String name, Object ... args) {
        HiveMethod hiveMethod = getApplicationMethod(name);
        if (hiveMethod == null) {
            LoggerFactory.getLogger().error("Can't find requested method!");
            return null;
        }

        Method method;
        try {
            method = hiveMethod.getReflectionMethod(jcl, instance);
        } catch (Exception e) {
            LoggerFactory.getLogger().error("Can't reflect method!", e);
            return null;
        }

View Full Code Here

TOP

Related Classes of org.hive.container.manifest.HiveMethod

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.