All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xsd.event-admin.xsd Maven / Gradle / Ivy

Go to download

iPOJO bytecode manipulator. This manipulator is used to instrument java classes in order to be managed by iPOJO.

There is a newer version: 1.13.0
Show newest version

	

    
        
        	Description of an event publisher.
        
        
        	
        		The name of the event publisher, acting as a unique identifier.
The name of the POJO's field that will be used to send events. The field is initialized at component instantiation time. The type of the field must be "org.apache.felix.ipojo.handlers.event.publisher.Publisher".
        	
    	
    		
    			The name of the POJO field associated to this event publisher.
Despite it creates a dependency between the component code and the handler, this system allows hiding the whole complexity of event sending.
    		
    	
    		
    			The comma-separated-list of the topics on which events will be sent. All subscribers that are listening to one of these topics will receive the events.
    	
    		
    			Determines if event sending is synchronous or not. By default, events are sent asynchronously, but you can specify there the desired behaviour of the Publisher.
The default value of this attribute is "false".
    		
    	
    		
    			The data key is used when you want to send data events. This attribute's value is the key, in the event's dictionary, in which sent data are stored. When you use the sendData method of the Publisher, the given object is placed in the event dictionary, associated with the specified data-key.
The default value of this attribute is user.data.
    
    
    
        
        	Description of an event subscriber.
        
        
        	
        		The name of the event subscriber, acting as a unique identifier.
    	
    		
    			The name of the POJO's method that will be called each time an event is received.
This method takes only one parameter, of typeorg.osgi.service.event.Eventby default, but this type can be overridden by defining the data-key and/or the data-type attributes.
    		
    	
    		
    			The comma-separated-list of the topics that the handler will listen to. Each event sent on a topic present in this list will be sent to the specified callback method.
    	
    		
    			The event filter is used to filter incoming events before sending them to the callback.
The syntax of this field is described in the OSGi EventAdmin Specification. If you don't specify a filter, all events sent on the listened topics will be considered.
    		
    	
    		
    			The data key is used when you want to receive data events. This attribute's value is the key corresponding to the received data in the event's dictionary.
If you use this attribute, the parameter passed to the callback method is the the value associated to this key, not the whole event.
This attribute is generally used with the data-typeattribute to specify the received object type.
If an event is received and it does not contain such a key, it is ignored (with a warning message).
    		
    	
    		
    			This attribute is associated to the data-key attribute. It specifies the type of objects (java.lang.Object by default) that the callback expects.
It is used to determine the unique callback method (in case of multiple methods with the same name) and to check type compliance at event reception.
Data events that are not corresponding to the specified type will be ignored (with a warning message).
    		
    
    
    
    
    




© 2015 - 2025 Weber Informatics LLC | Privacy Policy