|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.genuine.organizer.internal.DefaultServiceBroker
Default implementation of Genuine's service broker.
| Constructor Summary | |
DefaultServiceBroker()
|
|
| Method Summary | |
void |
fetchServices(Module module,
org.jdom.Element servicesElement)
The service broker has to fetch all services defined by the given module and keep them internally for later access. |
java.util.List |
getActiveServices(java.lang.Class serviceType)
Returns a list of all active services of the given type. |
Service |
getService(java.lang.Class serviceType)
Returns the first registered service of the given type. |
java.util.List |
getServices(java.lang.Class serviceType)
Returns a list of all services of the given type. |
void |
registerService(java.lang.Class serviceType,
Service service)
Adds the given service. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultServiceBroker()
| Method Detail |
public void registerService(java.lang.Class serviceType,
Service service)
registerService in interface InternalServiceBroker
public void fetchServices(Module module,
org.jdom.Element servicesElement)
throws ConfigurationException
fetchServices in interface InternalServiceBrokerConfigurationExceptionpublic java.util.List getServices(java.lang.Class serviceType)
getServices in interface ServiceBrokerserviceType - The type of service for which all registered instances
should be returned.
public java.util.List getActiveServices(java.lang.Class serviceType)
getActiveServices in interface ServiceBrokerserviceType - The type of service for which all registered instances
that are currently active should be returned.
public Service getService(java.lang.Class serviceType)
getService in interface ServiceBrokerserviceType - The type of service for which a registered instance
that is currently active should be returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||