example.message.router/src/example/message/client/ExampleMessageClient.java
@Activate
    public void activate(final BundleContext context, final Map<String, Object> props)
    {
        final ExampleMessageClientConfig config = Configurable
                .createConfigurable(ExampleMessageClientConfig.class, props);
        m_IpAddress = config.ipAdress();
        m_Port = config.port();
        
        m_SystemId = m_System.getId();        
        m_IdBytes = ByteBuffer.allocate(Long.SIZE / Byte.SIZE).putLong(m_SystemId).array();
        m_SequenceId = new AtomicInteger(0);
        
        m_EventHandlerReg = registerEvents(context);
        
        m_Logging.debug("Starting client. System Id: %s", m_SystemId);
    }
/**
     * Activates the example message client.
     * 
     * @param context
     *      Bundle context the example message client is associated with.
     * @param props
     *      Properties to be passed to the example message client.
     */
Activates the example message client.

@param context
Bundle context the example message client is associated with.
@param props
Properties to be passed to the example message client.
Activates the example message client . @param context Bundle context the example message client is associated with . @param props Properties to be passed to the example message client .
@Activate
    public void activate(final BundleContext context, final Map<String, Object> props)
    {
        final ExampleMessageClientConfig config = Configurable
                .createConfigurable(ExampleMessageClientConfig.class, props);
        m_IpAddress = config.ipAdress();
        m_Port = config.port();
        m_SystemId = m_System.getId();        
        m_IdBytes = ByteBuffer.allocate(Long.SIZE / Byte.SIZE).putLong(m_SystemId).array();
        m_SequenceId = new AtomicInteger(0);
        m_EventHandlerReg = registerEvents(context);
        m_Logging.debug("Starting client. System Id: %s", m_SystemId);
    }
@ Activate public void activate ( final BundleContext context , final Map < String , Object > props ) { final ExampleMessageClientConfig config = Configurable . createConfigurable ( ExampleMessageClientConfig . class , props ) ; m_IpAddress = config . ipAdress ( ) ; m_Port = config . port ( ) ; m_SystemId = m_System . getId ( ) ; m_IdBytes = ByteBuffer . allocate ( Long . SIZE / Byte . SIZE ) . putLong ( m_SystemId ) . array ( ) ; m_SequenceId = new AtomicInteger ( 0 ) ; m_EventHandlerReg = registerEvents ( context ) ; m_Logging . debug ( "Starting client. System Id: %s" , m_SystemId ) ; }
Activates the example message client.
Activates the example message client .