|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.managed.hk2.HK2ManagedObjectLocator
public class HK2ManagedObjectLocator
A ManagedObjectLocator
that uses Binder
HK2 Modules to discover the Managed
objects in the TopicOrientedApplication
.
Field Summary | |
---|---|
protected static Tracer |
tracer
|
Constructor Summary | |
---|---|
HK2ManagedObjectLocator(TopicOrientedApplication application,
String applicationName,
List<Binder> applicationModules)
|
Method Summary | |
---|---|
protected List<Binder> |
createPlatformModules()
Construct the Platform Modules. |
protected ServiceLocator |
createServiceLocator(String applicationName)
Construct the ServiceLocator for the TopicOrientedApplication . |
void |
destroy()
Destroy the Application Service Locator and any Managed Objects it may
have created. |
ServiceLocator |
getAppplicationServiceLocator()
Get the Application Service Locator. |
void |
locateManagedObjects(Set<Object> managedObjects)
Populates the set of managed objects for a TopicOrientedApplication. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Tracer tracer
Constructor Detail |
---|
public HK2ManagedObjectLocator(TopicOrientedApplication application, String applicationName, List<Binder> applicationModules)
Method Detail |
---|
public void locateManagedObjects(Set<Object> managedObjects) throws Exception
ManagedObjectLocator
It is illegal to add null
objects to the set of managed objects - doing
so will caus application load to fail with an exception.
locateManagedObjects
in interface ManagedObjectLocator
managedObjects
- The collection into which to add the service urls.
Exception
protected List<Binder> createPlatformModules()
TopicOrientedApplication
.
protected ServiceLocator createServiceLocator(String applicationName)
ServiceLocator
for the TopicOrientedApplication
.
applicationName
- The human-readable name of the TopicOrientedApplication
. This should be used as the name for the ServiceLocator
.
ServiceLocator
for the TopicOrientedApplication
public void destroy()
Managed Objects
it may
have created.
public ServiceLocator getAppplicationServiceLocator()
TopicOrientedApplication
is provided with its own
ServiceLocator
that will be different from that used by any other TopicOrientedApplication
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |