Examples of PluginManager


Examples of org.aavso.tools.vstar.ui.dialog.plugin.manager.PluginManager

    super(name);
  }

  protected void setUp() throws Exception {
    super.setUp();
    pluginManager = new PluginManager();
  }
View Full Code Here

Examples of org.apache.logging.log4j.core.config.plugins.PluginManager

                    List<ConfigurationFactory> list = new ArrayList<ConfigurationFactory>();
                    final String factoryClass = PropertiesUtil.getProperties().getStringProperty(CONFIGURATION_FACTORY_PROPERTY);
                    if (factoryClass != null) {
                        addFactory(list, factoryClass);
                    }
                    final PluginManager manager = new PluginManager("ConfigurationFactory");
                    manager.collectPlugins();
                    final Map<String, PluginType> plugins = manager.getPlugins();
                    final Set<WeightedFactory> ordered = new TreeSet<WeightedFactory>();
                    for (final PluginType type : plugins.values()) {
                        try {
                            @SuppressWarnings("unchecked")
                            final Class<ConfigurationFactory> clazz = (Class<ConfigurationFactory>)type.getPluginClass();
View Full Code Here

Examples of org.apache.logging.log4j.core.config.plugins.util.PluginManager

    private final StrLookup defaultLookup;

    public Interpolator(final StrLookup defaultLookup) {
        this.defaultLookup = defaultLookup == null ? new MapLookup(new HashMap<String, String>()) : defaultLookup;
        final PluginManager manager = new PluginManager("Lookup");
        manager.collectPlugins();
        final Map<String, PluginType<?>> plugins = manager.getPlugins();

        for (final Map.Entry<String, PluginType<?>> entry : plugins.entrySet()) {
            @SuppressWarnings("unchecked")
            final Class<? extends StrLookup> clazz = (Class<? extends StrLookup>) entry.getValue().getPluginClass();
            try {
View Full Code Here

Examples of org.apache.maven.plugin.PluginManager

     * @deprecated use the tag instead
     */
    public MavenJellyContext getPluginContext( String pluginId )
        throws Exception
    {
        PluginManager pluginManager = context.getMavenSession().getPluginManager();
        return pluginManager.getPluginContext( pluginId );
    }
View Full Code Here

Examples of org.apache.qpid.server.plugins.PluginManager

    }

    @Override
    public void validateConfiguration() throws ConfigurationException
    {
        PluginManager pluginManager;
        try
        {
            pluginManager = ApplicationRegistry.getInstance().getPluginManager();
        }
        catch (IllegalStateException ise)
        {
            // We see this happen during shutdown due to asynchronous reconfig performed IO threads
            // running at the same time as the shutdown handler.
            _policyPlugin = null;
            return;
        }

        if (!containsPositiveLong("messageAge") &&
            !containsPositiveLong("depth") &&
            !containsPositiveLong("messageCount"))
        {
            throw new ConfigurationException("At least one configuration property" +
                                             "('messageAge','depth' or 'messageCount') must be specified.");
        }

        SlowConsumerDetectionPolicyConfiguration policyConfig = getConfiguration(SlowConsumerDetectionPolicyConfiguration.class.getName());
        Map<String, SlowConsumerPolicyPluginFactory> factories = pluginManager.getSlowConsumerPlugins();

        if (policyConfig == null)
        {
            throw new ConfigurationException("No Slow Consumer Policy specified. Known Policies:" + factories.keySet());
        }
View Full Code Here

Examples of org.apache.roller.business.PluginManager

    public boolean getHasPagePlugins()
    {
        boolean ret = false;
        try {
            Roller roller = RollerFactory.getRoller();
            PluginManager ppmgr = roller.getPagePluginManager();
            ret = ppmgr.hasPagePlugins();
        } catch (RollerException e) {
            logger.error(e);
        }
        return ret;
    }
View Full Code Here

Examples of org.apache.roller.model.PluginManager

     */
    public Map getInitializedPlugins() {
        if (initializedPlugins == null) {
            try {
                Roller roller = RollerFactory.getRoller();
                PluginManager ppmgr = roller.getPagePluginManager();
                initializedPlugins = ppmgr.getWeblogEntryPlugins(this);
            } catch (Exception e) {
                this.log.error("ERROR: initializing plugins");
            }
        }
        return initializedPlugins;
View Full Code Here

Examples of org.apache.roller.weblogger.business.plugins.PluginManager

            if(editorsList != null) {
                setEditorsList(editorsList);
            }
           
            // set plugins list
            PluginManager ppmgr = WebloggerFactory.getWeblogger().getPluginManager();
            Map pluginsMap = ppmgr.getWeblogEntryPlugins(getActionWeblog());
            List plugins = new ArrayList();
            Iterator iter = pluginsMap.values().iterator();
            while(iter.hasNext()) {
                plugins.add(iter.next());
            }
View Full Code Here

Examples of org.apache.roller.weblogger.business.plugins.PluginManager

        mDate = date;
        mFolder = folder;
       
        // init plugins
        Weblogger roller = WebloggerFactory.getWeblogger();
        PluginManager ppmgr = roller.getPluginManager();
        mPagePlugins = ppmgr.getWeblogEntryPlugins(mWebsite);
    }
View Full Code Here

Examples of org.apache.roller.weblogger.business.plugins.PluginManager

   
   
    public List<WeblogEntryPlugin> getEntryPlugins() {
        List<WeblogEntryPlugin> availablePlugins = Collections.EMPTY_LIST;
        try {
            PluginManager ppmgr = WebloggerFactory.getWeblogger().getPluginManager();
            Map<String, WeblogEntryPlugin> plugins = ppmgr.getWeblogEntryPlugins(getActionWeblog());
           
            if(plugins.size() > 0) {
                availablePlugins = new ArrayList();
                for(WeblogEntryPlugin plugin : plugins.values()) {
                    availablePlugins.add(plugin);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.