[seam-commits] Seam SVN: r8471 - trunk/src/resteasy/org/jboss/seam/resteasy.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Jul 16 08:28:27 EDT 2008


Author: christian.bauer at jboss.com
Date: 2008-07-16 08:28:27 -0400 (Wed, 16 Jul 2008)
New Revision: 8471

Removed:
   trunk/src/resteasy/org/jboss/seam/resteasy/RestApplicationConfig.java
Log:
Cleanup

Deleted: trunk/src/resteasy/org/jboss/seam/resteasy/RestApplicationConfig.java
===================================================================
--- trunk/src/resteasy/org/jboss/seam/resteasy/RestApplicationConfig.java	2008-07-16 12:27:54 UTC (rev 8470)
+++ trunk/src/resteasy/org/jboss/seam/resteasy/RestApplicationConfig.java	2008-07-16 12:28:27 UTC (rev 8471)
@@ -1,134 +0,0 @@
-package org.jboss.seam.resteasy;
-
-import org.jboss.seam.ScopeType;
-import org.jboss.seam.Component;
-import org.jboss.seam.annotations.AutoCreate;
-import org.jboss.seam.annotations.Name;
-import org.jboss.seam.annotations.Scope;
-import org.jboss.seam.annotations.Install;
-
-import javax.ws.rs.core.MediaType;
-import java.util.*;
-
-/**
- * Resteasy and JAX-RS configuration, override in components.xml to
- * customize Resteasy settings.
- *
- * @author Christian Bauer
- */
- at Name("org.jboss.seam.resteasy.restApplicationConfig")
- at Scope(ScopeType.APPLICATION)
- at Install(precedence= Install.BUILT_IN)
- at AutoCreate
-public class RestApplicationConfig extends javax.ws.rs.core.ApplicationConfig {
-
-    private Map<Class<?>, Component> providerClasses = new HashMap<Class<?>, Component>();
-    private Map<Class<?>, Component> resourceClasses = new HashMap<Class<?>, Component>();
-
-    private List<String> providerClassNames = new ArrayList<String>();
-    private List<String> resourceClassNames = new ArrayList<String>();
-
-    private Map<String,String> mediaTypeMappings = new HashMap<String,String>();
-    private Map<String,String> languageMappings = new HashMap<String,String>();
-
-    private boolean scanForProviderClasses = true;
-    private boolean scanForResourceClasses = true;
-    private boolean useBuiltinProviders = true;
-
-    public RestApplicationConfig() {
-        super();
-    }
-
-    public Set<Class<?>> getProviderClasses() {
-        return providerClasses.keySet();
-    }
-
-    public Set<Class<?>> getResourceClasses() {
-        return resourceClasses.keySet();
-    }
-
-    public void addProviderClass(Class<?> clazz, Component component) {
-        providerClasses.put(clazz, component);
-    }
-
-    public void removeProviderClass(Class<?> clazz) {
-        providerClasses.remove(clazz);
-    }
-
-    public void addResourceClass(Class<?> clazz, Component component) {
-        resourceClasses.put(clazz, component);
-    }
-
-    public void removeResourceClass(Class<?> clazz) {
-        resourceClasses.remove(clazz);
-    }
-
-    public Component getProviderClassComponent(Class clazz) {
-        return providerClasses.get(clazz) != null ? providerClasses.get(clazz) : null;
-    }
-
-    public Component getResourceClassComponent(Class clazz) {
-        return resourceClasses.get(clazz) != null ? resourceClasses.get(clazz) : null;
-    }
-
-    public Map<String, MediaType> getMediaTypeMappings() {
-        Map<String, MediaType> extMap = new HashMap<String, MediaType>();
-        for (String ext : mediaTypeMappings.keySet()) {
-            String value = mediaTypeMappings.get(ext);
-            extMap.put(ext, MediaType.valueOf(value));
-        }
-        return extMap;
-    }
-
-    public void setMediaTypeMappings(Map<String, String> mediaTypeMappings) {
-        this.mediaTypeMappings = mediaTypeMappings;
-    }
-
-    public Map<String, String> getLanguageMappings() {
-        return languageMappings;
-    }
-
-    public void setLanguageMappings(Map<String, String> languageMappings) {
-        this.languageMappings = languageMappings;
-    }
-
-    public List<String> getProviderClassNames() {
-        return providerClassNames;
-    }
-
-    public void setProviderClassNames(List<String> providerClassNames) {
-        this.providerClassNames = providerClassNames;
-    }
-
-    public List<String> getResourceClassNames() {
-        return resourceClassNames;
-    }
-
-    public void setResourceClassNames(List<String> resourceClassNames) {
-        this.resourceClassNames = resourceClassNames;
-    }
-
-    public boolean isScanForProviderClasses() {
-        return scanForProviderClasses;
-    }
-
-    public void setScanForProviderClasses(boolean scanForProviderClasses) {
-        this.scanForProviderClasses = scanForProviderClasses;
-    }
-
-    public boolean isScanForResourceClasses() {
-        return scanForResourceClasses;
-    }
-
-    public void setScanForResourceClasses(boolean scanForResourceClasses) {
-        this.scanForResourceClasses = scanForResourceClasses;
-    }
-
-    public boolean isUseBuiltinProviders() {
-        return useBuiltinProviders;
-    }
-
-    public void setUseBuiltinProviders(boolean useBuiltinProviders) {
-        this.useBuiltinProviders = useBuiltinProviders;
-    }
-}




More information about the seam-commits mailing list