Package org.qi4j.runtime.composite

Examples of org.qi4j.runtime.composite.TransientInstance


    // Descriptors

    public TransientDescriptor getTransientDescriptor( TransientComposite composite )
    {
        TransientInstance transientInstance = getCompositeInstance( composite );
        return (TransientDescriptor) transientInstance.descriptor();
    }
View Full Code Here


    @Override
    public TransientDescriptor transientDescriptorFor( Object transsient )
    {
        if( transsient instanceof TransientComposite )
        {
            TransientInstance transientInstance = compositeInstanceOf( (Composite) transsient );
            return (TransientDescriptor) transientInstance.descriptor();
        }
        throw new IllegalArgumentException( "Wrong type. Must be subtype of " + TransientComposite.class );
    }
View Full Code Here

            if( Proxy.isProxyClass( value.getClass() ) )
            {
                InvocationHandler invocationHandler = Proxy.getInvocationHandler( value );
                if( invocationHandler instanceof TransientInstance )
                {
                    TransientInstance handler = (TransientInstance) invocationHandler;
                    valueClassName = Classes.toString( handler.descriptor().types() )
                                     + " in [" + handler.module().name() + "] of [" + handler.module()
                        .layerInstance()
                        .name() + "]";
                }
                else
                {
View Full Code Here

TOP

Related Classes of org.qi4j.runtime.composite.TransientInstance

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.