Examples of ConfigurationListener


Examples of com.github.diamond.client.event.ConfigurationListener

 
  public static void main(String[] args) throws IOException {
    ApplicationContext applicationContext = new ClassPathXmlApplicationContext("bean.xml");
   
    PropertiesConfiguration configuration = PropertiesConfigurationFactoryBean.getPropertiesConfiguration();
    configuration.addConfigurationListener(new ConfigurationListener() {
          @Override
          public void configurationChanged(ConfigurationEvent event) {
                              //监听配置参数变化,监听不到?
              System.out.println(event.getType().name() + " " + event.getPropertyName() + " " + event.getPropertyValue());
          }
View Full Code Here

Examples of de.mud.jta.event.ConfigurationListener

   * Create the list plugin and get the url to the actual list.
   */
  public MudConnector(final PluginBus bus, final String id) {
    super(bus, id);

    bus.registerPluginListener(new ConfigurationListener() {
      public void setConfiguration(PluginConfig config) {
        String url =
                config.getProperty("MudConnector", id, "listURL");
        if (url != null) {
          try {
View Full Code Here

Examples of de.mud.jta.event.ConfigurationListener

      public void write(byte[] b) throws IOException {
        source.write(b);
      }
    };

    bus.registerPluginListener(new ConfigurationListener() {
      public void setConfiguration(PluginConfig config) {
        user = config.getProperty("SSH", id, "user");
  pass = config.getProperty("SSH", id, "password");
      }
    });
View Full Code Here

Examples of de.mud.jta.event.ConfigurationListener

    super(bus, id);

    // register socket listener
    bus.registerPluginListener(this);

    bus.registerPluginListener(new ConfigurationListener() {
      public void setConfiguration(PluginConfig config) {
        if ((relay = config.getProperty("Socket", id, "relay"))
                != null)
          if (config.getProperty("Socket", id, "relayPort") != null)
            try {
View Full Code Here

Examples of de.mud.jta.event.ConfigurationListener

   */
  public ButtonBar(PluginBus bus, final String id) {
    super(bus, id);

    // configure the button bar
    bus.registerPluginListener(new ConfigurationListener() {
      public void setConfiguration(PluginConfig cfg) {
        String file = cfg.getProperty("ButtonBar", id, "setup");
        clearFields =
                (new Boolean(cfg.getProperty("ButtonBar", id, "clearFields")))
                .booleanValue();
View Full Code Here

Examples of de.mud.jta.event.ConfigurationListener

    } // !personalJava


    // configure the remote URL
    bus.registerPluginListener(new ConfigurationListener() {
      public void setConfiguration(PluginConfig config) {
        String tmp;

        JMenuItem save = new JMenuItem("Save As File");
        menu.add(save);
View Full Code Here

Examples of de.mud.jta.event.ConfigurationListener

  private HandlerPTY pty;

  public Shell(final PluginBus bus, final String id) {
    super(bus, id);

    bus.registerPluginListener(new ConfigurationListener() {
      public void setConfiguration(PluginConfig cfg) {
        String tmp;
  if((tmp = cfg.getProperty("Shell", id, "command")) != null) {
    shellCommand = tmp;
    // System.out.println("Shell: Setting config " + tmp); // P3
View Full Code Here

Examples of de.mud.jta.event.ConfigurationListener

  public Status(PluginBus bus, final String id) {
    super(bus, id);

    // setup the info
    bus.registerPluginListener(new ConfigurationListener() {
      public void setConfiguration(PluginConfig config) {
        infoURL = config.getProperty("Status", id, "info");
        if (infoURL != null)
          host.setAlignmentX(JLabel.CENTER);
        String tmp;
View Full Code Here

Examples of de.mud.jta.event.ConfigurationListener

    super(bus, id);

    // register socket listener
    bus.registerPluginListener(this);

     bus.registerPluginListener(new ConfigurationListener() {
       public void setConfiguration(PluginConfig config) {
   String tos = config.getProperty("Timeout", id, "seconds");
   if(tos != null) {
     try {
       timeout = Integer.parseInt(tos);
View Full Code Here

Examples of de.mud.jta.event.ConfigurationListener

      public void setApplet(JApplet applet) {
        context = applet.getAppletContext();
      }
    });

    bus.registerPluginListener(new ConfigurationListener() {
      public void setConfiguration(PluginConfig config) {
        String s;
        if ((s = config.getProperty("URLFilter", id, "protocols")) != null) {
          int old = -1, idx = s.indexOf(',');
          while (idx >= 0) {
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.