Package com.adito.extensions.types

Examples of com.adito.extensions.types.Plugin


     *
     * @param bundle bundle containing message resources
     * @param clazz class containing event codes
     */
    public static void updateEventsTable(String bundle, Class clazz) {
        Plugin auditingPlugin = PluginType.getPlugin("adito-enterprise-auditing");
        if (auditingPlugin == null) {
            if(log.isDebugEnabled())
                log.warn("Could not locate auditing plugin. No events codes can be updated.");
        } else {
            try {
                Method m = auditingPlugin.getClass().getMethod("getDatabase", new Class[] {});
                Database d = (Database) m.invoke(auditingPlugin, new Object[] {});
                m = d.getClass().getMethod("updateEventsTable", new Class[] { String.class, Class.class });
                m.invoke(d, new Object[] { bundle, clazz });
            } catch (Exception e) {
                log.error("Failed to register event codes.", e);
View Full Code Here

TOP

Related Classes of com.adito.extensions.types.Plugin

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.