Package org.rioproject.associations

Examples of org.rioproject.associations.AssociationDescriptor


        /*
         * Call the static create method providing the service name, service
         * interface class and discovery group name(s). Note the the returned
         * AssociationDescriptor can be modified for additional options as well.
         */
        AssociationDescriptor descriptor = AssociationDescriptor.create("Calculator",
                                                                        Calculator.class,
                                                                        testManager.getGroups());
        /* Create association management and get the Future. */
        org.rioproject.associations.AssociationManagement aMgr = new DefaultAssociationManagement();
        Association<Calculator> association = aMgr.addAssociationDescriptor(descriptor);
View Full Code Here


        boolean createCoreAssociations = true;
        String s = (String)context.getInitParameter("create-core-associations");
        if(s!=null && s.equals("no"))
            createCoreAssociations = false;
        if(createCoreAssociations) {
            AssociationDescriptor monitor =
                createAssociationDescriptor("Monitor", context.getServiceBeanConfig().getGroups());
            Association<ProvisionMonitor> monitorAssociation = associationMgmt.addAssociationDescriptor(monitor);
            monitorFuture = monitorAssociation.getServiceFuture();
        }
    }
View Full Code Here

        /*
         * Create the Association as a REQUIRES, we always require these associations
         * to be resolved. If for some reason we do not resolve these associations,
         * this service will never be advertised.
         */
        AssociationDescriptor ad = new AssociationDescriptor(AssociationType.REQUIRES, name);
        ad.setInterfaceNames(ProvisionMonitor.class.getName());
        //ad.setPropertyName("service");
        ad.setGroups(groups);
        ad.setMatchOnName(false);
        return ad;
    }
View Full Code Here

TOP

Related Classes of org.rioproject.associations.AssociationDescriptor

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.