001package org.granite.tide.ejb; 002 003import java.lang.annotation.Annotation; 004import java.util.Collections; 005import java.util.Set; 006 007import javax.servlet.ServletContext; 008 009import org.granite.config.ConfigProvider; 010import org.granite.messaging.service.ServiceFactory; 011 012 013public class EjbConfigProvider implements ConfigProvider { 014 015 public EjbConfigProvider(ServletContext servletContext) { 016 } 017 018 public Boolean useTide() { 019 return true; 020 } 021 022 public String getType() { 023 return "server"; 024 } 025 026 public Class<? extends ServiceFactory> getFactoryClass() { 027 return EjbServiceFactory.class; 028 } 029 030 public <T> T findInstance(Class<T> type) { 031 return null; 032 } 033 034 public <T> Set<T> findInstances(Class<T> type) { 035 return Collections.emptySet(); 036 } 037 038 public Class<?>[] getTideInterfaces() { 039 return new Class<?>[] { EjbIdentity.class }; 040 } 041 042 @SuppressWarnings("unchecked") 043 public Class<? extends Annotation>[] getTideAnnotations() { 044 return new Class[0]; 045 } 046 047}