All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.terracotta.management.ApplicationEhCache Maven / Gradle / Ivy

There is a newer version: 2.10.9.2
Show newest version
/*
 * All content copyright (c) 2003-2012 Terracotta, Inc., except as may otherwise be noted in a separate copyright
 * notice. All rights reserved.
 */
package com.terracotta.management;

import java.util.HashSet;
import java.util.ServiceLoader;
import java.util.Set;

import javax.ws.rs.core.Application;

public class ApplicationEhCache extends Application {

  @Override
  public Set> getClasses() {
    Set> restResourcesClasses = new HashSet>();
    ServiceLoader loader = ServiceLoader.load(ApplicationEhCacheService.class, ApplicationEhCacheService.class.getClassLoader());
    for (ApplicationEhCacheService applicationEhCacheService : loader) {
      restResourcesClasses.addAll(applicationEhCacheService.getRestResourceClasses());
    }
    return restResourcesClasses;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy