cxf-lazy-deploy

Deploy CXF clients faster

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

com.vecna.cxf
ArtifactId

ArtifactId

cxf-lazy-clients
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

cxf-lazy-deploy
Deploy CXF clients faster
Project Organization

Project Organization

Vecna Technologies
Source Code Management

Source Code Management

https://github.com/vecnatechnologies/cxf-lazy-clients

Download cxf-lazy-clients

How to add to project

<!-- https://jarcasting.com/artifacts/com.vecna.cxf/cxf-lazy-clients/ -->
<dependency>
    <groupId>com.vecna.cxf</groupId>
    <artifactId>cxf-lazy-clients</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.vecna.cxf/cxf-lazy-clients/
implementation 'com.vecna.cxf:cxf-lazy-clients:1.0'
// https://jarcasting.com/artifacts/com.vecna.cxf/cxf-lazy-clients/
implementation ("com.vecna.cxf:cxf-lazy-clients:1.0")
'com.vecna.cxf:cxf-lazy-clients:jar:1.0'
<dependency org="com.vecna.cxf" name="cxf-lazy-clients" rev="1.0">
  <artifact name="cxf-lazy-clients" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.vecna.cxf', module='cxf-lazy-clients', version='1.0')
)
libraryDependencies += "com.vecna.cxf" % "cxf-lazy-clients" % "1.0"
[com.vecna.cxf/cxf-lazy-clients "1.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.cxf : cxf-rt-rs-client Optional jar 3.0.1
org.apache.cxf : cxf-rt-frontend-jaxws Optional jar 3.0.1
org.slf4j : slf4j-api jar 1.7.7

test (2)

Group / Artifact Type Version
org.slf4j : slf4j-simple jar 1.7.7
junit : junit jar 4.10

Project Modules

There are no modules declared in this project.

Lazy CXF

About

Deploy CXF clients faster (in development).

This library provides drop-in replacements for CXF's JAXRSClientFactoryBean and JaxWsProxyFactoryBean. Both have an additional lazy parameter which controls whether a proxied, uninitialized (lazy) client is created by the factory. A lazy client would delay all expensive initialization (data binding generation/introspection or what have you) until the first call to the client.

Note that lazy clients incur the cost of an additional reflective call for each call, so it's not advised to set lazy to true outside of the development environment.

Compatibility

Has been tested with CXF 3.0.1 but should be compatible with older 2.x versions. The CXF dependencies are marked as optional (assuming your project already depends on the CXF's JAX-RS and/or JAX-WS runtime if you're using this library).

Example

  <bean id="myServiceFactory" class="com.vecna.cxf.ws.JaxWsProxyFactoryBean"
    p:serviceClass="com.services.MyService"
    p:address="https://myserver/MyService"
    p:lazy="true"/>

  <bean id="myService" factory-bean="myServiceFactory" factory-method="get"/>
com.vecna.cxf

Vecna Technologies, Inc.

Versions

Version
1.0