org.jboss.webbeans.integration.deployer.env
Class WebBeansJndiBinder

java.lang.Object
  extended by org.jboss.webbeans.integration.deployer.env.WebBeansJndiBinder

public class WebBeansJndiBinder
extends Object

This singleton bean for the deployer is responsible for binding an object factory to the required name(s) in JNDI. Once bound, all deployed applications can obtain the Web Beans manager from JNDI.

Author:
David Allen

Constructor Summary
WebBeansJndiBinder()
           
 
Method Summary
protected  void bind(String key, Object binding)
          Bind object to jndi.
 void startService(String jndiContextPath, String managerObjectFactoryClass)
          Start the service.
 void stopService()
          Stop the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebBeansJndiBinder

public WebBeansJndiBinder()
Method Detail

startService

public void startService(String jndiContextPath,
                         String managerObjectFactoryClass)
                  throws Exception
Start the service.

Parameters:
jndiContextPath - the jndi context path
managerObjectFactoryClass - the manager object factory
Throws:
Exception - for any error

stopService

public void stopService()
                 throws Exception
Stop the service.

Throws:
Exception - for any error

bind

protected void bind(String key,
                    Object binding)
             throws Exception
Bind object to jndi.

Parameters:
key - the key
binding - the object to bind
Throws:
Exception - for any error


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