avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/manager MX4JSystemManager.java
Date Mon, 20 May 2002 11:57:31 GMT
donaldp     02/05/20 04:57:31

  Modified:    src/java/org/apache/avalon/phoenix/components/manager
                        MX4JSystemManager.java
  Log:
  Fix checkstyle violations
  
  Revision  Changes    Path
  1.6       +16 -6     jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/manager/MX4JSystemManager.java
  
  Index: MX4JSystemManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/manager/MX4JSystemManager.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- MX4JSystemManager.java	10 May 2002 11:08:57 -0000	1.5
  +++ MX4JSystemManager.java	20 May 2002 11:57:31 -0000	1.6
  @@ -79,9 +79,11 @@
           m_embeddor = (Embeddor)serviceManager.lookup( Embeddor.ROLE );
           m_kernel = (Kernel)serviceManager.lookup( Kernel.ROLE );
           m_deployer = (Deployer)serviceManager.lookup( Deployer.ROLE );
  -        m_repository = (ConfigurationRepository)serviceManager.lookup( ConfigurationRepository.ROLE
);
  +        m_repository = (ConfigurationRepository)serviceManager.
  +            lookup( ConfigurationRepository.ROLE );
           m_logManager = (LogManager)serviceManager.lookup( LogManager.ROLE );
  -        m_extensionManager = (PackageRepository)serviceManager.lookup( PackageRepository.ROLE
);
  +        m_extensionManager = (PackageRepository)serviceManager.
  +            lookup( PackageRepository.ROLE );
       }
   
       public void initialize()
  @@ -95,7 +97,10 @@
   
           /**
            // add user names
  -         m_mBeanServer.invoke(adaptorName, "addAuthorization", new Object[] {"mx4j", "mx4j"},
new String[] {"java.lang.String", "java.lang.String"});
  +         m_mBeanServer.invoke(adaptorName,
  +         "addAuthorization",
  +         new Object[] {"mx4j", "mx4j"},
  +         new String[] {"java.lang.String", "java.lang.String"});
   
            // use basic authentication
            m_mBeanServer.setAttribute(adaptorName, new Attribute("AuthenticationMethod",
"basic"));
  @@ -109,11 +114,14 @@
                       m_mBeanServer.setAttribute( processorName, new Attribute( "File", path
) );
                   }
           */
  -        m_mBeanServer.setAttribute( processorName, new Attribute( "UseCache", new Boolean(
false ) ) );
  +        final Attribute useCache =
  +            new Attribute( "UseCache", new Boolean( false ) );
  +        m_mBeanServer.setAttribute( processorName, useCache );
           /*
                   if( pathInJar != null )
                   {
  -                    m_mBeanServer.setAttribute( processorName, new Attribute( "PathInJar",
pathInJar ) );
  +                    m_mBeanServer.setAttribute( processorName,
  +                    new Attribute( "PathInJar", pathInJar ) );
                   }
           */
   
  @@ -125,7 +133,9 @@
           //TODO: SystemManager itself aswell???
           //FIXME: All this stuff should be done by embeddor and read out of a config file
           register( "Kernel", m_kernel, new Class[]{KernelMBean.class} );
  -        register( "ExtensionManager", m_extensionManager, new Class[]{ExtensionManagerMBean.class}
);
  +        register( "ExtensionManager",
  +                  m_extensionManager,
  +                  new Class[]{ExtensionManagerMBean.class} );
           register( "Embeddor", m_embeddor, new Class[]{EmbeddorMBean.class} );
           register( "Deployer", m_deployer, new Class[]{DeployerMBean.class} );
           register( "LogManager", m_logManager );
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message