Package org.qi4j.api.service

Examples of org.qi4j.api.service.Activatable


    {
        for( final ServiceReference serviceReference : serviceReferences )
        {
            if( serviceReference instanceof Activatable )
            {
                Activatable eventActivatable = new Activatable()
                {
                    @Override
                    public void activate() throws Exception
                    {
                        ((Activatable) serviceReference).activate();
View Full Code Here


        throw new PassivationException( exceptions );
    }

    private void passivate( ArrayList<Exception> exceptions )
    {
        Activatable activatable = active.removeFirst();
        try
        {
            activatable.passivate();
        }
        catch( Exception e )
        {
            if( e instanceof PassivationException )
            {
View Full Code Here

TOP

Related Classes of org.qi4j.api.service.Activatable

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.