org.jnp.server
Class NamingBeanImpl

java.lang.Object
  extended by org.jnp.server.NamingBeanImpl
All Implemented Interfaces:
NamingBean

public class NamingBeanImpl
extends Object
implements NamingBean

A naming pojo that wraps the Naming server implementation. This is a refactoring of the legacy org.jnp.server.Main into a

Version:
$Revision: 96241 $
Author:
Scott.Stark@jboss.org

Field Summary
protected  boolean InstallGlobalService
          A flag indicating if theServer will be set as the NamingContext.setLocal value
protected  Naming theServer
          The Naming interface server implementation
protected  boolean UseGlobalService
          A flag indicating if theServer will try to use the NamingContext.setLocal value
 
Constructor Summary
NamingBeanImpl()
           
 
Method Summary
protected  Naming createServer()
          Util method for possible override.
 EventMgr getEventMgr()
           
 boolean getInstallGlobalService()
           
 boolean getInstallJavaComp()
           
 Naming getNamingInstance()
           
 SecurityManager getSecurityMgr()
           
 boolean getUseGlobalService()
           
static void main(String[] args)
           
 void setEventMgr(EventMgr eventMgr)
           
 void setInstallGlobalService(boolean flag)
           
 void setInstallJavaComp(boolean b)
           
 void setSecurityMgr(SecurityManager securityMgr)
           
 void setUseGlobalService(boolean flag)
           
 void start()
           
 void stop()
          Clear the NamingContext local server if its our theSever value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theServer

protected Naming theServer
The Naming interface server implementation


InstallGlobalService

protected boolean InstallGlobalService
A flag indicating if theServer will be set as the NamingContext.setLocal value


UseGlobalService

protected boolean UseGlobalService
A flag indicating if theServer will try to use the NamingContext.setLocal value

Constructor Detail

NamingBeanImpl

public NamingBeanImpl()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

getNamingInstance

public Naming getNamingInstance()
Specified by:
getNamingInstance in interface NamingBean

getInstallGlobalService

public boolean getInstallGlobalService()

setInstallGlobalService

public void setInstallGlobalService(boolean flag)

getUseGlobalService

public boolean getUseGlobalService()

setUseGlobalService

public void setUseGlobalService(boolean flag)

getEventMgr

public EventMgr getEventMgr()

setEventMgr

public void setEventMgr(EventMgr eventMgr)

getSecurityMgr

public SecurityManager getSecurityMgr()

setSecurityMgr

public void setSecurityMgr(SecurityManager securityMgr)

createServer

protected Naming createServer()
                       throws Exception
Util method for possible override.

Returns:
new naming instance
Throws:
Exception - for any error

getInstallJavaComp

public boolean getInstallJavaComp()

setInstallJavaComp

public void setInstallJavaComp(boolean b)

start

public void start()
           throws Exception
Throws:
Exception

stop

public void stop()
Clear the NamingContext local server if its our theSever value



Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.