juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Bognar <james.bog...@salesforce.com>
Subject Re: More/Simpler Examples
Date Mon, 09 Jan 2017 14:30:00 GMT
Hi John,

This is great!  Some notes...

There's an existing juneau-samples project.  But it's more targeted towards
REST examples.  Maybe have the following two projects...

   - juneau-examples-rest
   - juneau-examples-core

While we're at it, maybe rename the following projects to highlight that
they're REST apis?...

   - juneau-server -> juneau.rest
   - juneau.client -> juneau.rest.client

Your example uses constructor arguments for setting bean properties instead
of setters.  While this works fine, setters are generally faster.  With
setters, the bean can be instantiated immediately and properties set as we
find them in the input.  But with constructor args, we have to cache the
property values temporarily before we call the constructor.  So there's an
additional HashMap being created.  Just something to keep in mind.

On Sun, Jan 8, 2017 at 10:07 PM, John D. Ament <johndament@apache.org>

> Hey
> So starting to try out Juneau.  There's a steep learning curve from what I
> can tell with using Juneau.  Its powerful, but not clear which classes
> should/should not be used.
> I started putting together some simple examples based on core with simple
> use cases - I have a POJO that I want to convert to JSON to RDF.  It'll be
> good to add more content types and robust examples for how core works soon,
> but one step at a time.
> https://github.com/apache/incubator-juneau/commit/
> 2c690b6416740bb03646540dfcd765e23f63ac47
> It's sitting on a branch as I wanted to make sure this was wanted and could
> be helpful in getting people using Juneau.  I went with straight forward
> code samples that are commented to explain how they work.
> John

James Bognar

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message