001    package org.granite.tide.ejb;
002    
003    import java.lang.annotation.Annotation;
004    import java.util.Collections;
005    import java.util.Set;
006    
007    import javax.servlet.ServletContext;
008    
009    import org.granite.config.ConfigProvider;
010    import org.granite.messaging.service.ServiceFactory;
011    
012    
013    public 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 "ejb";
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    }