Example usage for javax.naming.event NamingEvent getOldBinding

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

Introduction

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

Prototype

public Binding getOldBinding() 

Source Link

Document

Retrieves the binding of the object before the change.

Usage

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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