Package org.apache.beehive.controls.api.bean

Examples of org.apache.beehive.controls.api.bean.ControlImplementation


            // If the implementation class is not transient, then invoke the ImplInitializer
            // resetServices method to reset all contextual service references to null, as
            // contextual services should never be serializated and always reassociated on
            // deserialization.
            //
            ControlImplementation implAnnot = (ControlImplementation)_implClass.getAnnotation(ControlImplementation.class);
            assert implAnnot != null;
            if (implAnnot.isTransient())
            {
                _control = null;
            }
            else
            {
View Full Code Here


        //
        // Check serializability of the implementation class.  Any non-transient implementation
        // must implement the java.io.Serializable marker interface to indicate that the author
        // has considered serializability.
        //
        ControlImplementation implAnnot = _implDecl.getAnnotation(ControlImplementation.class);
        if (!implAnnot.isTransient())
        {
            boolean isSerializable = false;
            for (InterfaceType superIntf: _implDecl.getSuperinterfaces())
            {
                if (superIntf.toString().equals("java.io.Serializable"))
View Full Code Here

            {
                // Search for applicable ControlAssemblers as specified on the control impls
                String cImpl = controlTypeToImpl.get( ct );
                Class cImplClass = cl.loadClass( cImpl );

                ControlImplementation a = (ControlImplementation)cImplClass.getAnnotation(ControlImplementation.class);
                if ( a == null )
                    throw new ControlAssemblyException( "Control implementation class=" + cImpl + " missing ControlImplementation annotation" );

                // For each non-default ControlAssembler, create one and call it.
                Class<? extends ControlAssembler> assemblerClass = a.assembler();
                if ( !assemblerClass.equals(DefaultControlAssembler.class) )
                {
                    ControlAssembler assembler = assemblerClass.newInstance();
                    Set<String> clients = controlTypeToClients.get( ct );
                    ControlAssemblyContext cac = factory.newInstance(
View Full Code Here

            // If the implementation class is not transient, then invoke the ImplInitializer
            // resetServices method to reset all contextual service references to null, as
            // contextual services should never be serializated and always reassociated on
            // deserialization.
            //
            ControlImplementation implAnnot = (ControlImplementation)_implClass.getAnnotation(ControlImplementation.class);
            assert implAnnot != null;
            if (implAnnot.isTransient())
            {
                _control = null;
            }
            else
            {
View Full Code Here

            // If the implementation class is not transient, then invoke the ImplInitializer
            // resetServices method to reset all contextual service references to null, as
            // contextual services should never be serializated and always reassociated on
            // deserialization.
            //
            ControlImplementation implAnnot = (ControlImplementation)_implClass.getAnnotation(ControlImplementation.class);
            assert implAnnot != null;
            if (implAnnot.isTransient())
            {
                _control = null;
            }
            else
            {
View Full Code Here

        //
        // Check serializability of the implementation class.  Any non-transient implementation
        // must implement the java.io.Serializable marker interface to indicate that the author
        // has considered serializability.
        //
        ControlImplementation implAnnot = _implDecl.getAnnotation(ControlImplementation.class);
        if (!implAnnot.isTransient())
        {
            if (!isSerializable())
            {
                _ap.printError( decl, "control.implementation.unserializable" );
            }
View Full Code Here

            // If the implementation class is not transient, then invoke the ImplInitializer
            // resetServices method to reset all contextual service references to null, as
            // contextual services should never be serializated and always reassociated on
            // deserialization.
            //
            ControlImplementation implAnnot = (ControlImplementation)_implClass.getAnnotation(ControlImplementation.class);
            assert implAnnot != null;
            if (implAnnot.isTransient())
            {
                _control = null;
            }
            else
            {
View Full Code Here

        //
        // Check serializability of the implementation class.  Any non-transient implementation
        // must implement the java.io.Serializable marker interface to indicate that the author
        // has considered serializability.
        //
        ControlImplementation implAnnot = _implDecl.getAnnotation(ControlImplementation.class);
        if (!implAnnot.isTransient())
        {
            if (!isSerializable())
            {
                _ap.printError( decl, "control.implementation.unserializable" );
            }
View Full Code Here

            {
                // Search for applicable ControlAssemblers as specified on the control impls
                String cImpl = controlTypeToImpl.get( ct );
                Class cImplClass = cl.loadClass( cImpl );

                ControlImplementation a = (ControlImplementation)cImplClass.getAnnotation(ControlImplementation.class);
                if ( a == null )
                    throw new ControlAssemblyException( "Control implementation class=" + cImpl + " missing ControlImplementation annotation" );

                // For each non-default ControlAssembler, create one and call it.
                Class<? extends ControlAssembler> assemblerClass = a.assembler();
                if ( !assemblerClass.equals(DefaultControlAssembler.class) )
                {
                    ControlAssembler assembler = assemblerClass.newInstance();
                    Set<String> clients = controlTypeToClients.get( ct );
                    ControlAssemblyContext cac = factory.newInstance(
View Full Code Here

TOP

Related Classes of org.apache.beehive.controls.api.bean.ControlImplementation

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.