Class JNDIContext
java.lang.Object
ecmwf.common.technical.JNDIContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close.createBean(String bean) Creates the bean.createBean(String bean, String token) Creates the bean.Gets the certificate.getRoot()Gets the root.static ObjectinvokeBean(Object bean, String method, Class<?>[] types, Object[] values) Invoke bean.booleanlogged()Logged.voidlogin()Login.voidlogout()Logout.
-
Constructor Details
-
JNDIContext
public JNDIContext()
-
-
Method Details
-
getRoot
-
getCertificate
-
invokeBean
public static Object invokeBean(Object bean, String method, Class<?>[] types, Object[] values) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException Invoke bean.- Parameters:
bean- the beanmethod- the methodtypes- the typesvalues- the values- Returns:
- the object
- Throws:
NoSuchMethodException- the no such method exceptionIllegalAccessException- the illegal access exceptionInvocationTargetException- the invocation target exception
-
createBean
public Object createBean(String bean) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, NamingException Creates the bean.- Parameters:
bean- the bean- Returns:
- the object
- Throws:
NoSuchMethodException- the no such method exceptionIllegalAccessException- the illegal access exceptionInvocationTargetException- the invocation target exceptionNamingException- the naming exception
-
createBean
public Object createBean(String bean, String token) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, NamingException Creates the bean.- Parameters:
bean- the beantoken- the token- Returns:
- the object
- Throws:
NoSuchMethodException- the no such method exceptionIllegalAccessException- the illegal access exceptionInvocationTargetException- the invocation target exceptionNamingException- the naming exception
-
login
-
logout
-
logged
public boolean logged()Logged.- Returns:
- true, if successful
-
close
public void close()Close.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-