polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@hedhman.org>
Subject Re: Restlet library
Date Sun, 02 Aug 2015 12:30:14 GMT
By providing your own InfrastructureLayer....

I am still fiddling with the whole assembly bit to get it as sweet as
possible... Not satisfied yet
On Aug 2, 2015 19:36, "Paul Merlin" <paul@nosphere.org> wrote:

> Hey Niclas,
>
> I added the missing dependencies, the library now compiles.
>
> First thought: File-EntityStore and RDF-IndexQuery dependencies are
> hardcoded, how can one use this with other ES/IQ ?
>
>
> Niclas Hedhman a écrit :
> > One more thing;
> >   * Deployable either with embeddde HTTP server or as Servlet on
> containers.
> >
> >
> > committed.
> >
> > On Sun, Aug 2, 2015 at 6:29 PM, Niclas Hedhman <niclas@hedhman.org>
> wrote:
> >
> >> Gang,
> >>
> >> I have been adapting my Restlet library to Zest 3.0, and it is coming
> >> along quite well.
> >>
> >> * CRUD handling of Entities if one so chooses.
> >> * Resources for 'anything'
> >> * Link traversals
> >> * Autobuilding the EntryPoint (bookmarkable) document.
> >> * Invocation of methods on resources or entities.
> >> * Support for www-form-urlencoded to ValueComposite
> >> * Security support (want to use Shiro library, yet integrate with
> >> Restlet's)
> >>
> >> * Application structure support. Predefined, but replaceable, layers
> are;
> >>     - Connectivity
> >>     - Resource
> >>     - Domain
> >>     - Infrastructure
> >>     - Configuration
> >>
> >> I am not yet done, but about to commit what I have so far, including the
> >> beginning of a TestApplication.
> >>
> >> public static void main( String[] args )
> >>     throws Exception
> >> {
> >>     RestApplicationAssembler assembler = new RestApplicationAssembler(
> NAME, VERSION, MODE,
> >>         ConfigurationLayer.class,
> >>         InfrastructureLayer.class,
> >>         DomainLayer.class,
> >>         ResourceLayer.class,
> >>         ConnectivityLayer.class
> >>     );
> >>
> >>     assembler.initialize();
> >>
> >>     ModuleAssembly configModule = assembler.layer(
> ConfigurationLayer.class ).module( ConfigurationModule.NAME );
> >>
> >>     assembler.layer( InfrastructureLayer.class,
> >>                      new FileStorageModule( configModule )
> >>     );
> >>
> >>     assembler.layer( DomainLayer.class,
> >>                      new OrdersModule()
> >>     );
> >>
> >>     assembler.start();
> >>     assembler.addShutdownHook();
> >> }
> >>
> >>
> >>
> >> Feedback is welcome, as usual.
> >>
> >>
> >> Cheers
> >> --
> >> Niclas Hedhman, Software Developer
> >> http://zest.apache.org - New Energy for Java
> >>
> >
> >
> >
>

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