001/**
002 *   GRANITE DATA SERVICES
003 *   Copyright (C) 2006-2013 GRANITE DATA SERVICES S.A.S.
004 *
005 *   This file is part of the Granite Data Services Platform.
006 *
007 *   Granite Data Services is free software; you can redistribute it and/or
008 *   modify it under the terms of the GNU Lesser General Public
009 *   License as published by the Free Software Foundation; either
010 *   version 2.1 of the License, or (at your option) any later version.
011 *
012 *   Granite Data Services is distributed in the hope that it will be useful,
013 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
014 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
015 *   General Public License for more details.
016 *
017 *   You should have received a copy of the GNU Lesser General Public
018 *   License along with this library; if not, write to the Free Software
019 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
020 *   USA, or see <http://www.gnu.org/licenses/>.
021 */
022package org.granite.config.servlet3;
023
024import static java.lang.annotation.ElementType.TYPE;
025import static java.lang.annotation.RetentionPolicy.RUNTIME;
026
027import java.lang.annotation.Annotation;
028import java.lang.annotation.Inherited;
029import java.lang.annotation.Retention;
030import java.lang.annotation.Target;
031
032import org.granite.config.ConfigProvider;
033import org.granite.messaging.amf.process.AMF3MessageInterceptor;
034import org.granite.messaging.service.ExceptionConverter;
035import org.granite.messaging.service.ServiceFactory;
036import org.granite.messaging.service.annotations.RemoteDestination;
037import org.granite.messaging.service.security.SecurityService;
038
039
040@Inherited
041@Retention(RUNTIME)
042@Target({TYPE})
043public @interface ServerFilter {
044        
045        String graniteUrlMapping() default "/graniteamf/*";
046        
047        String gravityUrlMapping() default "/gravityamf/*";
048        
049        boolean tide() default false;
050        
051        String type() default "";
052        
053        Class<? extends ConfigProvider> configProviderClass() default ConfigProvider.class;
054        
055        Class<? extends ServiceFactory> factoryClass() default ServiceFactory.class;
056
057    String factoryClassName() default "";
058        
059        Class<? extends SecurityService> securityServiceClass() default SecurityService.class;
060        
061        Class<?>[] tideInterfaces() default {};
062        
063        Class<? extends Annotation>[] tideAnnotations() default { RemoteDestination.class };
064        
065        String[] tideNames() default {};
066        
067        String[] tideTypes() default {};
068        
069        String[] tideRoles() default {};
070        
071        Class<? extends ExceptionConverter>[] exceptionConverters() default {};
072        
073        Class<? extends AMF3MessageInterceptor> amf3MessageInterceptor() default AMF3MessageInterceptor.class;
074        
075        String ejbLookup() default "";
076        
077        String entityManagerFactoryJndiName() default "";
078        
079        String entityManagerJndiName() default "";
080        
081        String validatorClassName() default "";
082        
083        boolean useBigDecimal() default false;
084        
085        boolean useBigInteger() default false;
086        
087        boolean useLong() default false;
088}