com.neeve.managed
Interface ManagedObjectLocator

All Known Implementing Classes:
AbstractManagedObjectLocator, DefaultManagedObjectLocator, HK2ManagedObjectLocator

public interface ManagedObjectLocator

Provider interface for locating a Topic Oriented Application's 'managed' objects.

A 'managed' object is one that is of interest to the Talon server or TopicOrientedApplication for introspection (e.g @EventHandler or @AppCommandHandler annotated methods.)

It legal (though potentially inefficient) for a ManagedObjectLocator to return objects that end up not being of interest to the application.

A ManagedObjectLocator may return itself as a managed object in which case the ManagedObjectLocator itself will be eligible to serve as an event or command handler for the application. This may be useful, for example if the locator assumes responsibility for cleaning up any objects it constructs.


Method Summary
 void locateManagedObjects(Set<Object> managedObjects)
          Populates the set of managed objects for a TopicOrientedApplication.
 

Method Detail

locateManagedObjects

void locateManagedObjects(Set<Object> managedObjects)
                          throws Exception
Populates the set of managed objects for a TopicOrientedApplication.

It is illegal to add null objects to the set of managed objects - doing so will caus application load to fail with an exception.

Parameters:
managedObjects - The collection into which to add the service urls.
Throws:
Exception


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.