com.adventnet.utils.agent
Interface RegistrationInterface
- All Known Implementing Classes:
- AgentSnmpGroup
- public interface RegistrationInterface
- extends AgentEventListener
This interface is implemeneted by main class which makes
all necessary connections for group level registration listeners
This is mainly used as a clean interface for testing.
Example: class_ = Class.forName(classname); Here we are not aware of
the class which is going to be instantiated, so we are class casting
to this Interface
sampleMib = (RegistrationInterface)class_.newInstance();
addRegistrationListener
public void addRegistrationListener(RegistrationListener l)
- This method adds the registener listener.
- Parameters:
l - The Registration Listener to add.
removeRegistrationListener
public void removeRegistrationListener(RegistrationListener l)
- This method removes the registener listener.
- Parameters:
l - The Registration Listener to be Removed.