Package org.jamesii.core.services.management

Examples of org.jamesii.core.services.management.ServiceManagement


   */
  private void registerNewServiceType(Class<?> serviceType) {
    // currently we only create general management classes here. However,
    // once upon a time it might be necessary to exploit the plug-in mechanism
    // here, and create service specific instances instead.
    ServiceManagement newSM = new ServiceManagement();
    serviceTypes.put(serviceType, newSM);

    // enable forwarding of observer notifications from the management classes
    newSM.setMediator(managementMediator);
    newSM.registerObserver(managementObserver);

    // enable availability checking for the new service type, i.e., availability
    // is enabled per service type, and tus it could be configured per service
    // type (by exploiting the plug-in mechanism as well).
    serviceAvailability.put(serviceType, new Availability(newSM, null,
View Full Code Here


   *          the service type
   *
   * @return the size
   */
  public int size(Class<?> serviceType) {
    ServiceManagement sm = serviceTypes.get(serviceType);
    if (sm != null) {
      return sm.size();
    }
    return 0;
  }
View Full Code Here

TOP

Related Classes of org.jamesii.core.services.management.ServiceManagement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.