org.apache.tomee.loader.service.helper
Class JndiHelperImpl

java.lang.Object
  extended by org.apache.tomee.loader.service.helper.JndiHelperImpl
All Implemented Interfaces:
JndiHelper

public class JndiHelperImpl
extends Object
implements JndiHelper


Field Summary
static String APPLICATION_NODE_TYPE
           
static String CONTEXT_NODE_TYPE
           
static String LEAF_NODE_TYPE
           
static String MODULE_NODE_TYPE
           
static String ROOT_NODE_TYPE
           
 
Constructor Summary
JndiHelperImpl(ServiceContext srvCtx)
           
 
Method Summary
static Map<String,Object> createTreeNode(String type, String path, Map<String,Object> parent)
           
 Context getContext(String user, String password)
           
 Map<String,Object> getJndi()
           
 List<Method> getJndiMethods(String path)
           
 Object invokeJndiMethod(Context context, String path, String methodName, TypeAndValueEntry... params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXT_NODE_TYPE

public static final String CONTEXT_NODE_TYPE
See Also:
Constant Field Values

LEAF_NODE_TYPE

public static final String LEAF_NODE_TYPE
See Also:
Constant Field Values

APPLICATION_NODE_TYPE

public static final String APPLICATION_NODE_TYPE
See Also:
Constant Field Values

MODULE_NODE_TYPE

public static final String MODULE_NODE_TYPE
See Also:
Constant Field Values

ROOT_NODE_TYPE

public static final String ROOT_NODE_TYPE
See Also:
Constant Field Values
Constructor Detail

JndiHelperImpl

public JndiHelperImpl(ServiceContext srvCtx)
Method Detail

getJndiMethods

public List<Method> getJndiMethods(String path)
Specified by:
getJndiMethods in interface JndiHelper

getContext

public Context getContext(String user,
                          String password)
Specified by:
getContext in interface JndiHelper

invokeJndiMethod

public Object invokeJndiMethod(Context context,
                               String path,
                               String methodName,
                               TypeAndValueEntry... params)
Specified by:
invokeJndiMethod in interface JndiHelper

getJndi

public Map<String,Object> getJndi()
Specified by:
getJndi in interface JndiHelper

createTreeNode

public static Map<String,Object> createTreeNode(String type,
                                                String path,
                                                Map<String,Object> parent)


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.