public class JoramAdminBeanDefinitionParser
extends org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
The joram administration attributes:
A simple example:
<!-- Joram administration to use -->
<joram:admin id="wrapper"
user="root"
pass="root"
host="localhost"
port="16010" />
Modifier and Type | Field and Description |
---|---|
private Connection |
cnx |
static Logger |
logger |
Constructor and Description |
---|
JoramAdminBeanDefinitionParser() |
Modifier and Type | Method and Description |
---|---|
private AdminItf |
adminConnect(boolean collocated,
String user,
String pass,
String host,
int port)
Create the wrapper (AdminItf).
|
protected void |
doParse(Element element,
org.springframework.beans.factory.support.BeanDefinitionBuilder bean)
Parse the joram admin definition, and create the admin wrapper.
|
protected Class |
getBeanClass(Element element) |
doParse, getBeanClassName, getParentName, parseInternal
public static final Logger logger
private Connection cnx
protected Class getBeanClass(Element element)
getBeanClass
in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
AbstractSingleBeanDefinitionParser.getBeanClass(org.w3c.dom.Element)
protected void doParse(Element element, org.springframework.beans.factory.support.BeanDefinitionBuilder bean)
doParse
in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
AbstractSingleBeanDefinitionParser.doParse(org.w3c.dom.Element, org.springframework.beans.factory.support.BeanDefinitionBuilder)
private AdminItf adminConnect(boolean collocated, String user, String pass, String host, int port) throws Exception
collocated
- true if Joram is colocateduser
- the admin user namepass
- the admin passwordhost
- the admin hostport
- the admin portException
Copyright © 2022 ScalAgent D.T.. All rights reserved.