Package org.qi4j.runtime.composite

Examples of org.qi4j.runtime.composite.TransientInstance.descriptor()


    // Descriptors

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

    public StateHolder getState( TransientComposite composite )
    {
        return TransientInstance.getCompositeInstance( composite ).state();
View Full Code Here


    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 );
    }

    @Override
View Full Code Here

            {
                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
Copyright © 2018 www.massapi.com. 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.