congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ServiceConstructorMetaData
Code IndexAdd Tabnine to your IDE (free)

How to use
ServiceConstructorMetaData
in
org.jboss.system.metadata

Best Java code snippets using org.jboss.system.metadata.ServiceConstructorMetaData (Showing top 20 results out of 315)

origin: org.jboss.jbossas/jboss-as-server

private void createTopLevelServiceBeanWithMetaData(String contextId, DeploymentUnit unit, T deployment)
{
 // Provide a constructor for the service bean
 ServiceConstructorMetaData serviceConstructor = new ServiceConstructorMetaData();
 serviceConstructor.setSignature(new String[]{String.class.getName(), this.getMetaDataClassType().getName(),
    Boolean.class.getName()});
 serviceConstructor.setParameters(new Object[]{contextId, deployment, Boolean.TRUE});
 createJaccPolicyBean(serviceConstructor, unit);
}
origin: org.jboss.kernel/jboss-jmx-mc-int

ServiceConstructorMetaData result = new ServiceConstructorMetaData();
  result.setParams(params);
  result.setSignature(signature);
origin: org.jboss.microcontainer/jboss-jmx-mc-int

private void addConstructor(ServiceMetaData metaData, Element mbean) throws Exception
{
 ServiceConstructorMetaData constructorMetaData =  metaData.getConstructor();
 if(constructorMetaData == null)
   return;
 
 Element constructor = document.createElement("constructor");
 String[] params = constructorMetaData.getParams();
 if(params == null || params.length == 0)
   return;
  String[] signature = constructorMetaData.getSignature();
 if(signature.length != params.length)
   return; // this should actually not happen
 
 int i = params.length;
 for(int j = 0; j < i; j++)
 {
   Element arg = document.createElement("arg");
   arg.setAttribute("type", signature[j]);
   arg.setAttribute("value", params[j]);
   constructor.appendChild(arg);
 }
 mbean.appendChild(constructor);
}

origin: org.jboss.jbossas/jboss-as-connector

public ServiceConstructorMetaData buildConstructor(ManagedConnectionFactoryDeploymentMetaData mcfmd)
{
 ServiceConstructorMetaData constructor = new ServiceConstructorMetaData();
 constructor.setParameters(new Object[]{});
 constructor.setParams(new String[]{});      
 return constructor;
}
origin: org.jboss.microcontainer/jboss-jmx-mc-int

/**
* Install a StandardMBean
* 
* @param server the mbean server
* @param objectName the object name
* @param metadata the service metadata
* @return the installed instance
* @throws Exception for any error
*/
private static ServiceInstance installStandardMBean(MBeanServer server, ObjectName objectName, ServiceMetaData metaData) throws Exception
{
 ObjectName loaderName = metaData.getClassLoaderName();
 ClassLoader loader = server.getClassLoader(loaderName);
 String code = metaData.getCode();
 ServiceConstructorMetaData constructor = metaData.getConstructor();
 String interfaceName = metaData.getInterfaceName();
 Class<?> intf = loader.loadClass(interfaceName);
 log.debug("About to create bean resource: " + objectName + " with code: " + code + " and interface " + interfaceName);
 Object resource = server.instantiate(code,
                    loaderName,
                    constructor.getParameters(loader),
                    constructor.getSignature());
 log.debug("About to register StandardMBean : " + objectName);
 ObjectInstance instance = server.createMBean(StandardMBean.class.getName(),
                        objectName,
                        loaderName,
                        new Object[] { resource, intf },
                        new String[] { Object.class.getName() , Class.class.getName() });
 return new ServiceInstance(instance, resource);
}
origin: org.jboss.microcontainer/jboss-jmx-mc-int

  return EMPTY_PARAMETERS;
String[] signature = getSignature();
origin: org.jboss.microcontainer/jboss-jmx-mc-int

constructor.getParameters(loader),
constructor.getSignature());
origin: org.jboss.kernel/jboss-jmx-mc-int

  return EMPTY_PARAMETERS;
String[] signature = getSignature();
origin: org.jboss.jbossas/jboss-as-connector

@Override
public ServiceConstructorMetaData buildConstructor(ManagedConnectionFactoryDeploymentMetaData mcfmd)
{
 ServiceConstructorMetaData constructor = new ServiceConstructorMetaData();
 ConnectorMetaData md = repository.getConnectorMetaData(mcfmd.getRarName());
 if( md == null )
   throw new IllegalStateException("No ConnectorMetaData found for mdf rarName: "+mcfmd.getRarName());
 constructor.setParameters(new Object[]{md, mcfmd, getConnectionManager(mcfmd)});
 constructor.setSignature(new String[]{md.getClass().getName(), 
                    ManagedConnectionFactoryDeploymentMetaData.class.getName(),
                    String.class.getName()});
 return constructor;       
}
origin: org.jboss.microcontainer/jboss-jmx-mc-int

ServiceConstructorMetaData result = new ServiceConstructorMetaData();
  result.setParams(params);
  result.setSignature(signature);
origin: org.jboss.microcontainer/jboss-jmx-mc-int

constructor.getParameters(loader), 
constructor.getSignature());
origin: org.jboss.kernel/jboss-jmx-mc-int

private void addConstructor(ServiceMetaData metaData, Element mbean) throws Exception
{
 ServiceConstructorMetaData constructorMetaData =  metaData.getConstructor();
 if(constructorMetaData == null)
   return;
 
 Element constructor = document.createElement("constructor");
 String[] params = constructorMetaData.getParams();
 if(params == null || params.length == 0)
   return;
  String[] signature = constructorMetaData.getSignature();
 if(signature.length != params.length)
   return; // this should actually not happen
 
 int i = params.length;
 for(int j = 0; j < i; j++)
 {
   Element arg = document.createElement("arg");
   arg.setAttribute("type", signature[j]);
   arg.setAttribute("value", params[j]);
   constructor.appendChild(arg);
 }
 mbean.appendChild(constructor);
}
origin: org.jboss.jbossas/jboss-as-connector

rarDeployment.setObjectName(objectName);
rarDeployment.setCode(RARDeployment.class.getName());
ServiceConstructorMetaData constructor = new ServiceConstructorMetaData();
constructor.setSignature(new String[] { RARDeploymentMetaData.class.getName() });
constructor.setParameters(new Object[] { rdmd });
rarDeployment.setConstructor(constructor);
origin: org.jboss.kernel/jboss-jmx-mc-int

constructor.getParameters(loader),
constructor.getSignature());
origin: org.jboss.jbossas/jboss-as-server

ServiceConstructorMetaData serviceConstructor = new ServiceConstructorMetaData();
serviceConstructor.setSignature(new String[]{String.class.getName(), getMetaDataClassType().getName()});
serviceConstructor.setParameters(new Object[]{deploymentName, metaData});
subjaccPolicy.setConstructor(serviceConstructor);
origin: org.jboss.kernel/jboss-jmx-mc-int

constructor.getParameters(loader), 
constructor.getSignature());
origin: org.jboss.jbossas/jboss-as-server

webModule.setCode(WebModule.class.getName());
ServiceConstructorMetaData constructor = new ServiceConstructorMetaData();
constructor.setSignature(new String[] { DeploymentUnit.class.getName(), AbstractWarDeployer.class.getName(), AbstractWarDeployment.class.getName() });
constructor.setParameters(new Object[] { unit, this, deployment });
webModule.setConstructor(constructor);
origin: org.jboss.microcontainer/jboss-jmx-mc-int

constructor.getParameters(loader), 
constructor.getSignature());
origin: org.jboss.jbossas/jboss-as-server

ServiceConstructorMetaData ctor = new ServiceConstructorMetaData();
ctor.setSignature(
  new String[]{VFSDeploymentUnit.class.getName(), ApplicationMetaData.class.getName()}
);
ctor.setParameters(new Object[]{unit, legacyMD});
ejbModule.setConstructor(ctor);
origin: org.jboss.kernel/jboss-jmx-mc-int

/**
* Install a StandardMBean
* 
* @param server the mbean server
* @param objectName the object name
* @param metadata the service metadata
* @return the installed instance
* @throws Exception for any error
*/
private static ServiceInstance installStandardMBean(MBeanServer server, ObjectName objectName, ServiceMetaData metaData) throws Exception
{
 ObjectName loaderName = metaData.getClassLoaderName();
 ClassLoader loader = server.getClassLoader(loaderName);
 String code = metaData.getCode();
 ServiceConstructorMetaData constructor = metaData.getConstructor();
 String interfaceName = metaData.getInterfaceName();
 Class<?> intf = loader.loadClass(interfaceName);
 log.debugf("About to create bean resource:%1s with code: %2s and interface %3s", objectName, code, interfaceName);
 Object resource = server.instantiate(code,
                    loaderName,
                    constructor.getParameters(loader),
                    constructor.getSignature());
 log.debugf("About to register StandardMBean : %1s", objectName);
 ObjectInstance instance = server.createMBean(StandardMBean.class.getName(),
                        objectName,
                        loaderName,
                        new Object[] { resource, intf },
                        new String[] { Object.class.getName() , Class.class.getName() });
 return new ServiceInstance(instance, resource);
}
org.jboss.system.metadataServiceConstructorMetaData

Javadoc

ServiceConstructorMetaData. This class is based on the old ConstructorInfo from ServiceCreator

Most used methods

  • <init>
  • setSignature
    Set the signature.
  • setParams
    Set the params.
  • getParameters
    Get the parameters
  • getParams
    Get the params.
  • getSignature
    Get the signature.
  • setParameters
    Set the parameters.

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Reference (javax.naming)
  • JLabel (javax.swing)
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now