Package br.gov.frameworkdemoiselle.internal.implementation

Examples of br.gov.frameworkdemoiselle.internal.implementation.Management.invoke()


 
  public Object invoke(Class<?> managedClass , String operation , Object...  params){
    Management manager = Beans.getReference(Management.class);
    for (ManagedType type : manager.getManagedTypes()){
      if (type.getType().equals(managedClass)){
        return manager.invoke(type, operation, params);
      }
    }
   
    return null;
  }
View Full Code Here


    }

    Management manager = Beans.getReference(Management.class);
   
    try{
      return manager.invoke(managedType, actionName, params);
    }
    catch(DemoiselleException de){
      throw new MBeanException(new Exception(de.getMessage()));
    }
  }
View Full Code Here

    final ClassLoader originalClassloader = Thread.currentThread().getContextClassLoader();
   
    try{
      Thread.currentThread().setContextClassLoader( Management.class.getClassLoader() );
      Management manager = Beans.getReference(Management.class);
      return manager.invoke(managedType, actionName, params);
    }
    catch(DemoiselleException de){
      throw new MBeanException(new Exception(de.getMessage()));
    }
    finally{
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.