Package org.eclipse.sisu.wire

Examples of org.eclipse.sisu.wire.Wiring


     * @param binder The binder
     * @return Extended wiring
     */
    public Wiring wiring( final Binder binder )
    {
        final Wiring defaultWiring = WireModule.Strategy.DEFAULT.wiring( binder );
        final List<Wiring> customWiring = create( Wiring.class, Binder.class, binder );
        return customWiring.isEmpty() ? defaultWiring : new Wiring()
        {
            public boolean wire( final Key<?> key )
            {
                for ( final Wiring w : customWiring )
                {
                    if ( w.wire( key ) )
                    {
                        return true;
                    }
                }
                return defaultWiring.wire( key );
            }
        };
    }
View Full Code Here

TOP

Related Classes of org.eclipse.sisu.wire.Wiring

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.