Package org.jboss.system

Examples of org.jboss.system.Service


/*    */
/*    */   public void uninstallAction(ServiceControllerContext context)
/*    */   {
/*    */     try
/*    */     {
/* 55 */       Service service = context.getServiceProxy();
/* 56 */       service.stop();
/*    */
/* 58 */       context.getServiceContext().state = 5;
/*    */
/* 60 */       ObjectName objectName = context.getObjectName();
/* 61 */       ServiceController serviceController = context.getServiceController();
View Full Code Here


/*     */   private boolean hasJBossInternalLifecycle;
/*     */
/*     */   public static Service getServiceProxy(ObjectName objectName, MBeanServer server)
/*     */     throws Exception
/*     */   {
/*  92 */     Service service = null;
/*  93 */     MBeanInfo info = server.getMBeanInfo(objectName);
/*  94 */     MBeanOperationInfo[] opInfo = info.getOperations();
/*  95 */     Class[] interfaces = { Service.class };
/*  96 */     InvocationHandler handler = new ServiceProxy(objectName, server, opInfo);
/*  97 */     service = (Service)Proxy.newProxyInstance(Service.class.getClassLoader(), interfaces, handler);
View Full Code Here

TOP

Related Classes of org.jboss.system.Service

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.