On Thu, 25 Jul 2002 14:18, Huw Roberts wrote:
> Regarding DTD and hard coding of log messages, i'm taking care of that now.

thanks!

> How about if I just resubmit all patches and new classes so they can be
> applied more easily?

that would be great.

> I'll have more to say about the proxy stuff (in the documentation, right?)

;)

> - basically it's a way to define a facade or wrapper class around a managed
> object so data types can be mapped, and to provide additional flexibility
> in a JMX-independant way.  A good example of where this might make sense is
> the FTP app, where the FtpServerImpl doesn't do a whole lot, but holds
> references to objects that do.

Okay I get it. So a simple example would be something like

class KernelMBeanProxy
{
  private MyKernel m_kernel;

  KernelMBeanProxy( MyKernel kernel ) { m_kernel = kernel; }


  public void stopAllApps()
  {
     String[] names = m_kernel.getApplicationNames();
     for( int i = 0; i < names.length; i++ )
     {
       m_kernel.stopApp( names[ i ] );
     }
  }  

  public int getApplicationCount()
  {
    return m_kernel.getApplicationNames().length;
  }  

  public int getExtensionCount()
  {
    return m_kernel.getExtenstionManager().getExtensions().length;
  }  
}

So the proxy may implement extra functionality on top of the real service 
without the actual service implementing it? Is that what you mean?

-- 
Cheers,

Peter Donald
-----------------------------------------------
   "You can't depend on your eyes when your 
   imagination is out of focus." -Mark Twain 
----------------------------------------------- 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to