Package org.rioproject.admin

Examples of org.rioproject.admin.ServiceBeanControl


            if (serviceProxy instanceof Administrable) {
                Administrable admin = (Administrable) serviceProxy;
                Object adminObject = admin.getAdmin();

                if (adminObject instanceof ServiceBeanControl) {
                    ServiceBeanControl controller = (ServiceBeanControl) adminObject;
                    controller.advertise();
                    /* Additional attributes are ignored here, they are obtained
                     * by the ServiceBeanAdmin.advertise() method */
                } else if (adminObject instanceof JoinAdmin) {
                    Entry[] configuredAttributes = getConfiguredAttributes(componentName,
                                                                           config,
View Full Code Here


     * @see org.rioproject.servicebean.ServiceBeanManager#getServiceBeanControl()
     */
    public ServiceBeanControl getServiceBeanControl() throws ServiceBeanManagerException {
        if(marshalledInstance==null)
            throw new ServiceBeanManagerException("Unable to obtain ServiceBeanControl, there is no marshalled proxy instance");
        ServiceBeanControl serviceBeanControl;
        try {
            Object proxy = marshalledInstance.get(false);
            if(proxy instanceof Administrable) {
                Object adminObject = ((Administrable)proxy).getAdmin();
                if(adminObject instanceof ServiceBeanControl) {
View Full Code Here

TOP

Related Classes of org.rioproject.admin.ServiceBeanControl

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.