Example usage for javax.naming.event NamingEvent getNewBinding

List of usage examples for javax.naming.event NamingEvent getNewBinding

Introduction

In this page you can find the example usage for javax.naming.event NamingEvent getNewBinding.

Prototype

public Binding getNewBinding() 

Source Link

Document

Retrieves the binding of the object after the change.

Usage

From source file:Main.java

public void objectAdded(NamingEvent evt) {
    System.out.println(evt.getNewBinding().getName());
}

From source file:Main.java

public void objectChanged(NamingEvent evt) {
    System.out.println(evt.getNewBinding().getName());
    System.out.println(evt.getOldBinding().getName());
}