Package javax.naming.event

Examples of javax.naming.event.NamingEvent


    {
        try
        {
            Binding binding = new Binding( opContext.getDn().getUpName(),
                ServerEntryUtils.toBasicAttributes( opContext.getEntry() ), false );
            NamingEvent evt = new NamingEvent( source, NamingEvent.OBJECT_ADDED,
                binding, null, opContext );

            if ( listener instanceof NamespaceChangeListener )
            {
                ( ( NamespaceChangeListener ) listener ).objectAdded( evt );
View Full Code Here


        {
            if ( listener instanceof NamespaceChangeListener )
            {
                Binding binding = new Binding( opContext.getDn().getUpName(),
                    ServerEntryUtils.toBasicAttributes( opContext.getEntry() ), false );
                NamingEvent evt = new NamingEvent( source, NamingEvent.OBJECT_REMOVED, null,
                    binding, opContext );
                ( ( NamespaceChangeListener ) listener ).objectAdded( evt );
            }
        }
        catch ( Exception e )
View Full Code Here

        {
            Binding newBinding = new Binding( opContext.getDn().getUpName(),
                ServerEntryUtils.toBasicAttributes( opContext.getEntry() ), false );
            Binding oldBinding = new Binding( opContext.getDn().getUpName(),
                ServerEntryUtils.toBasicAttributes( opContext.getEntry().getOriginalEntry() )false );
            NamingEvent evt = new NamingEvent( source, NamingEvent.OBJECT_CHANGED,
                newBinding, oldBinding, opContext );

            if ( listener instanceof ObjectChangeListener )
            {
                ( ( ObjectChangeListener ) listener ).objectChanged( evt );
View Full Code Here

            {
                Binding newBinding = new Binding( opContext.getDn().getUpName(),
                    ServerEntryUtils.toBasicAttributes( opContext.getEntry() ), false );
                Binding oldBinding = new Binding( opContext.getDn().getUpName(),
                    ServerEntryUtils.toBasicAttributes( opContext.getEntry().getOriginalEntry() ), false );
                NamingEvent evt = new NamingEvent( source, NamingEvent.OBJECT_RENAMED,
                    newBinding, oldBinding, opContext );
                ( ( NamespaceChangeListener ) listener ).objectRenamed( evt );
            }
        }
        catch ( Exception e )
View Full Code Here

            {
                Binding newBinding = new Binding( opContext.getDn().getUpName(),
                    ServerEntryUtils.toBasicAttributes( opContext.getEntry() ), false );
                Binding oldBinding = new Binding( opContext.getDn().getUpName(),
                    ServerEntryUtils.toBasicAttributes( opContext.getEntry().getOriginalEntry() ), false );
                NamingEvent evt = new NamingEvent( source, NamingEvent.OBJECT_RENAMED,
                    newBinding, oldBinding, opContext );
                ( ( NamespaceChangeListener ) listener ).objectRenamed( evt );
            }
        }
        catch ( Exception e )
View Full Code Here

            {
                Binding newBinding = new Binding( opContext.getDn().getUpName(),
                    ServerEntryUtils.toBasicAttributes( opContext.getEntry() ), false );
                Binding oldBinding = new Binding( opContext.getDn().getUpName(),
                    ServerEntryUtils.toBasicAttributes( opContext.getEntry().getOriginalEntry() ), false );
                NamingEvent evt = new NamingEvent( source, NamingEvent.OBJECT_RENAMED,
                    newBinding, oldBinding, null );
                ( ( NamespaceChangeListener ) listener ).objectRenamed( evt );
            }
        }
        catch ( Exception e )
View Full Code Here

         {
            log.trace("fireEvent, fullName:"+fullName+" type: "+type
                  +", changeInfo:"+changeInfo+", scopes:"+scopes);
         }
         String name = fullName.toString();
         NamingEvent event = new NamingEvent(context, type, newb, oldb, changeInfo);
         for(EventListenerInfo info : listeners)
         {
            if(scopes.contains(info.getScope()))
            {
               String targetName = info.getFullTargetName();
View Full Code Here

    {
        try
        {
            Binding binding = new Binding( addContext.getDn().getName(),
                ServerEntryUtils.toBasicAttributes( addContext.getEntry() ), false );
            NamingEvent evt = new NamingEvent( source, NamingEvent.OBJECT_ADDED,
                binding, null, addContext );

            if ( listener instanceof NamespaceChangeListener )
            {
                ( ( NamespaceChangeListener ) listener ).objectAdded( evt );
View Full Code Here

        {
            if ( listener instanceof NamespaceChangeListener )
            {
                Binding binding = new Binding( deleteContext.getDn().getName(),
                    ServerEntryUtils.toBasicAttributes( deleteContext.getEntry() ), false );
                NamingEvent evt = new NamingEvent( source, NamingEvent.OBJECT_REMOVED, null,
                    binding, deleteContext );
                ( ( NamespaceChangeListener ) listener ).objectAdded( evt );
            }
        }
        catch ( Exception e )
View Full Code Here

            Binding newBinding = new Binding( modifyContext.getDn().getName(),
                ServerEntryUtils.toBasicAttributes( modifyContext.getEntry() ), false );
            Binding oldBinding = new Binding( modifyContext.getDn().getName(),
                ServerEntryUtils.toBasicAttributes( ( ( ClonedServerEntry ) modifyContext.getEntry() )
                    .getOriginalEntry() ), false );
            NamingEvent evt = new NamingEvent( source, NamingEvent.OBJECT_CHANGED,
                newBinding, oldBinding, modifyContext );

            if ( listener instanceof ObjectChangeListener )
            {
                ( ( ObjectChangeListener ) listener ).objectChanged( evt );
View Full Code Here

TOP

Related Classes of javax.naming.event.NamingEvent

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.