public interface ManagedObjectLocator
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.
| Modifier and Type | Method and Description |
|---|---|
void |
locateManagedObjects(Set<Object> managedObjects)
Populates the set of managed objects for a TopicOrientedApplication.
|
void locateManagedObjects(Set<Object> managedObjects) throws Exception
It is illegal to add null objects to the set of managed objects - doing
so will caus application load to fail with an exception.
managedObjects - The collection into which to add the service urls.ExceptionCopyright © 2016 Neeve Research, LLC. All Rights Reserved.