Package org.qi4j.api.composite

Examples of org.qi4j.api.composite.Composite


        @Service
        private Result result;

        public void other()
        {
            Composite value = api.dereference( me );
            result.execute( (Some) value );
            next.other();
        }
View Full Code Here


        @Service
        private Result result;

        public void other()
        {
            Composite value = api.dereference( me );
            result.execute( (Some) value );
            next.other();
        }
View Full Code Here

        } else
        {
            try
            {
                Object[] args = new Object[proxyConstructor.getParameterTypes().length];
                Composite composite = Composite.class.cast( proxyConstructor.newInstance( args ) );
                proxyClass.getField( "_instance" ).set( composite, invocationHandler );
                return composite;
            } catch( Exception e )
            {
                throw new ConstructionException( e );
View Full Code Here

        else
        {
            try
            {
                Object[] args = new Object[ proxyConstructor.getParameterTypes().length ];
                Composite composite = Composite.class.cast( proxyConstructor.newInstance( args ) );
                proxyClass.getField( "_instance" ).set( composite, invocationHandler );
                return composite;
            }
            catch( Exception e )
            {
View Full Code Here

    protected String messageKey( Object target, String propertyName, ConstraintViolation violation )
    {
        Iterable<Class<?>> types;
        if( target instanceof Composite )
        {
            Composite composite = (Composite) target;
            types = Qi4j.FUNCTION_DESCRIPTOR_FOR.map( composite ).types();
        }
        else
        {
            ArrayList<Class<?>> list = new ArrayList<Class<?>>( 1 );
View Full Code Here

        catch( Throwable t )
        {
            if( doTrace )
            {
                long duration = System.nanoTime() - timeStamp;
                Composite object = api.dereference( thisComposite );
                traceService.traceException( compositeType, object, method, args, t, entryTime, duration );
            }
            throw t;
        }
        return result;
View Full Code Here

        {
            return;
        }
        if( priority >= loggingService.debugLevel() )
        {
            Composite derefed = api.dereference( composite );
            loggingService.debug( derefed, message );
        }
    }
View Full Code Here

TOP

Related Classes of org.qi4j.api.composite.Composite

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.