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

com.netflix.eventbus.spi.SubscriberInfo Maven / Gradle / Ivy

There is a newer version: 0.3.0
Show newest version
package com.netflix.eventbus.spi;

import java.lang.reflect.Method;

/**
 * Metadata about a subscriber. This does not define any characterstics of the subscriber, its just a metadata
 * about any subscriber. 
* This class is designed to be immutable. * * @author Nitesh Kant ([email protected]) */ public class SubscriberInfo { private final Method subMethod; private final Object subInstance; public SubscriberInfo(Method subMethod, Object subInstance) { this.subMethod = subMethod; this.subInstance = subInstance; } /** * Returns the method in the subscriber class that is subscribing to a particular event. * * @return The method in the subscriber class that is subscribing to a particular event. */ public Method getSubscriberMethod() { return subMethod; } /** * Returns the instance of the class that this subscriber method belongs. * * @return The instance of the class that this subscriber method belongs. */ public Object getSubscriberInstance() { return subInstance; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy