geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jboy...@apache.org
Subject cvs commit: incubator-geronimo/modules/deployment/src/java/org/apache/geronimo/deployment/plugin/jmx JMXDeploymentManager.java
Date Wed, 02 Jun 2004 19:58:02 GMT
jboynes     2004/06/02 12:58:02

  Modified:    modules/deployment/src/java/org/apache/geronimo/deployment/plugin/jmx
                        JMXDeploymentManager.java
  Log:
  Fill in locale and DConfigBean methods
  
  Revision  Changes    Path
  1.4       +12 -10    incubator-geronimo/modules/deployment/src/java/org/apache/geronimo/deployment/plugin/jmx/JMXDeploymentManager.java
  
  Index: JMXDeploymentManager.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/deployment/src/java/org/apache/geronimo/deployment/plugin/jmx/JMXDeploymentManager.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- JMXDeploymentManager.java	2 Jun 2004 19:50:40 -0000	1.3
  +++ JMXDeploymentManager.java	2 Jun 2004 19:58:02 -0000	1.4
  @@ -191,38 +191,40 @@
       }
   
       public Locale[] getSupportedLocales() {
  -        throw new UnsupportedOperationException();
  +        return new Locale[]{getDefaultLocale()};
       }
   
       public Locale getCurrentLocale() {
  -        throw new UnsupportedOperationException();
  +        return getDefaultLocale();
       }
   
       public Locale getDefaultLocale() {
  -        throw new UnsupportedOperationException();
  +        return Locale.getDefault();
       }
   
       public boolean isLocaleSupported(Locale locale) {
  -        throw new UnsupportedOperationException();
  +        return getDefaultLocale().equals(locale);
       }
   
       public void setLocale(Locale locale) {
  -        throw new UnsupportedOperationException();
  +        throw new UnsupportedOperationException("Cannot set Locale");
       }
   
       public DConfigBeanVersionType getDConfigBeanVersion() {
  -        throw new UnsupportedOperationException();
  +        return DConfigBeanVersionType.V1_4;
       }
   
       public boolean isDConfigBeanVersionSupported(DConfigBeanVersionType version) {
  -        throw new UnsupportedOperationException();
  +        return DConfigBeanVersionType.V1_4.equals(version);
       }
   
       public void setDConfigBeanVersion(DConfigBeanVersionType version) throws DConfigBeanVersionUnsupportedException
{
  -        throw new UnsupportedOperationException();
  +        if (!isDConfigBeanVersionSupported(version)) {
  +            throw new DConfigBeanVersionUnsupportedException("Version not supported " +
version);
  +        }
       }
   
       public DeploymentConfiguration createConfiguration(DeployableObject dObj) throws InvalidModuleException
{
  -        throw new UnsupportedOperationException();
  +        throw new InvalidModuleException("Not supported");
       }
   }
  
  
  

Mime
View raw message