public MessageExchangeFactoryImpl(final DeliveryChannel deliveryChannel, final org.ow2.petals.jbi.messaging.endpoint.ServiceEndpoint consumerEndpoint, final Logger logger) { this.log = new LoggingUtil(logger); this.deliveryChannel = deliveryChannel; this.consumerEndpoint = consumerEndpoint; }
/** * {@inheritDoc} */ public synchronized DomainConfiguration getDomainConfiguration() { this.log.call(); return this.domainConfiguration; }
/** * {@inheritDoc} */ public boolean isWarnEnabled() { return this.isLevelEnabled(BasicLevel.WARN); }
/** * Start of the shared library lifecycle. * */ @LifeCycle(on = LifeCycleType.START) public void start() { this.log = new LoggingUtil(this.logger); this.log.call(); }
/** * Checks if the parameter is null or empty * * @param parameter * parameter to be tested * @param parameterName * name of the parameter * @throws IllegalArgumentException * if parameter is null */ public static void isNullOrEmptyParameter(String parameter, String parameterName) { isEmptyParameter(parameter, parameterName); isNullParameter(parameter, parameterName); }
public ComponentLifeCycleMBean getBindingComponentLifeCycleByName(String name) { ParameterCheckHelper.isNullOrEmptyParameterWithLog(name, "name must not be null or empty", this.log); this.log.call(); return this.bindingLifeCyclesByName.get(name); }
/** * Create a String result from a DOM document * * @param document * the DOM Document. Must not be null * @return a String representation of the DOM Document * @throws TransformerException */ public static String createStringFromDOMDocument(final Node document) throws TransformerException { return createStringFromDOMNode(document, false); }
/** * {@inheritDoc} */ public synchronized Document getDescription() { // transform the string description as DOM one on first call since this // is not always used, takes time and memory! if ((this.description == null) && (this.stringDescription != null)) { this.description = XMLUtil.createDocumentFromString(this.stringDescription); } return this.description; }
public boolean isBinding(String componentName) { ParameterCheckHelper.isNullOrEmptyParameterWithLog(componentName, "componentName must not be null", this.log); return this.bindingLifeCyclesByName.containsKey(componentName); }
public NioClientAgentPoolObjectFactory(final TopologyService topologyService, final NioSelector selectorAgent, final long connectionTimeout, final Logger logger) { this.topologyService = topologyService; this.selectorAgent = selectorAgent; this.logger = logger; this.log = new LoggingUtil(logger); this.connectionTimeout = connectionTimeout; }
/** * {@inheritDoc} */ public synchronized Topology getTopology() throws ConfigurationException { this.log.call(); // NOTE : This is the initial topology, not updated at runtime. return this.topology; }
/** * {@inheritDoc} */ public boolean isDebugEnabled() { return this.isLevelEnabled(BasicLevel.DEBUG); }
/** * Create a String result from a DOM Node * * @param node * the DOM Node. Must not be null * @return a String representation of the DOM Document * @throws TransformerException */ public static String createStringFromDOMNode(final Node node) throws TransformerException { return createStringFromDOMNode(node, true); }
/** * * NIO Client constructor. * * @param logger * @param selectorAgent * @param serializationCacheCleanPeriod * @throws IOException */ public NioClientAgent(final Logger logger, final NioSelector selectorAgent) throws IOException { this.log = new LoggingUtil(logger); this.selectorAgent = selectorAgent; }
/** * {@inheritDoc} */ public synchronized SubDomainConfiguration getSubDomainConfiguration() { this.log.call(); return this.subDomainConfiguration; }
/** * {@inheritDoc} */ public boolean isErrorEnabled() { return this.isLevelEnabled(BasicLevel.ERROR); }
/** * */ @LifeCycle(on = LifeCycleType.START) protected void start() { this.log = new LoggingUtil(this.logger); }
public void registerServiceAssembly(ServiceAssemblyLifeCycle serviceAssemblyLifeCycle, String name) { this.log.call(); this.serviceAssemblyLifeCycles.put(name, serviceAssemblyLifeCycle); }
/** * {@inheritDoc} */ public boolean isInfoEnabled() { return this.isLevelEnabled(BasicLevel.INFO); }
public MessageExchange accept() throws MessagingException { this.log.call(); final MessageExchange me = this.poll(-1); return me; }