Codota Logo
org.jboss.system.deployers
Code IndexAdd Codota to your IDE (free)

How to use org.jboss.system.deployers

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.jboss.deployers/jboss-deployers-jmx

/**
* Create a new ServiceDeploymentDeployer.
*/
public ServiceDeploymentDeployer()
{
 setDeploymentVisitor(new ServiceDeploymentVisitor());
 setComponentVisitor(new ServiceMetaDataVisitor());
}
origin: org.jboss.deployers/jboss-deployers-jmx

 public void undeploy(DeploymentUnit unit, ServiceMetaData deployment)
 {
   removeServiceComponent(unit, deployment);
 }
}
origin: org.jboss.deployers/jboss-deployers-jmx

/**
* Create a new ServiceClassLoaderDeployer.
*/
public ServiceClassLoaderDeployer()
{
 super(ServiceDeployment.class);
 setOutput(ClassLoadingMetaData.class);
 setStage(DeploymentStages.POST_PARSE);
 setTopLevelOnly(true);
}
origin: org.jboss.deployers/jboss-deployers-jmx

 loaderName = findLoaderName(unit.getClassLoader());
try
 create(context);
 try
   start(context);
   Throwable t = context.getProblem();
   if (t != null)
   destroy(name);
   throw t;
 remove(name);
 throw t;
ControllerContext serviceContext = getControllerContext(name);
if (serviceContext != null)
 putContext(serviceContext, unit.getParent()); // we're component, use parent
origin: org.jboss.deployers/jboss-deployers-jmx

/**
* Populate the deployment's classloading metadata from a loader repository config
* with parent delegation false.
* 
* @param unit the deployment unit
* @param loaderConfig the loader repository config
* @return the classloading metadata
* @throws DeploymentException for any error
*/
public static ClassLoadingMetaData create(DeploymentUnit unit, LoaderRepositoryConfig loaderConfig) throws DeploymentException
{
 return create(unit, loaderConfig, false);
}
origin: org.jboss.deployers/jboss-deployers-jmx

public void undeploy(DeploymentUnit unit, ServiceMetaData deployment)
{
 ObjectName name = deployment.getObjectName();
 ControllerContext serviceContext = getControllerContext(name);
 if (serviceContext != null)
   removeContext(serviceContext, unit.getParent());
 ServiceContext context = controller.getServiceContext(name);
 if (context != null)
 {
   stop(name);
   destroy(name);
   remove(name);
 }
}
origin: org.jboss.deployers/jboss-deployers-jmx

/**
* Create a new SARDeployer.
* 
* @throws IllegalArgumentException for a null kernel
*/
public SARDeployer()
{
 super(ServiceDeployment.class);
 setSuffix("-service.xml");
 // Enable the super class ManagedObjectCreator implementation
 setBuildManagedObject(true);
 setAllowMultipleFiles(true);
}
origin: org.jboss.deployers/jboss-deployers-jmx

/**
* Create a new ServiceDeployer.
* 
* @param controller the service controller
* @throws IllegalArgumentException for a null controller
*/
public ServiceDeployer(ServiceController controller)
{
 super(ServiceMetaData.class);
 if (controller == null)
   throw new IllegalArgumentException("Null controller");
 this.controller = controller;
 setComponentsOnly(true);
 setUseUnitName(true);
}
origin: org.jboss.deployers/jboss-deployers-jmx

processXMLClasspath(unit, classPaths);
 if (index != -1)
   docStr = maskPasswords(docStr, index);
origin: org.jboss.deployers/jboss-deployers-jmx

public void deploy(DeploymentUnit unit, ServiceMetaData deployment) throws DeploymentException
{
  addServiceComponent(unit, deployment);
}
origin: org.jboss.deployers/jboss-deployers-jmx

  private String maskPasswords(String original, int index)
  {
   StringBuilder sb = new StringBuilder(original);
   String modified;
   int startPasswdStringIndex = sb.indexOf(">", index);
   if (startPasswdStringIndex != -1)
   {
     // checks if the keyword 'password' was not in a comment
     if (sb.charAt(startPasswdStringIndex - 1) != '-')
     {
      int endPasswdStringIndex = sb.indexOf("<", startPasswdStringIndex);
      if (endPasswdStringIndex != -1) // shouldn't happen, but check anyway
      {
        sb.replace(startPasswdStringIndex + 1, endPasswdStringIndex, "****");
      }
     }
     modified = sb.toString();
     // unlikely event of more than one password
     index = modified.toLowerCase().indexOf("password", startPasswdStringIndex);
     if (index != -1)
      return maskPasswords(modified, index);
     return modified;
   }
   return original;
  }
}
origin: org.jboss.deployers/jboss-deployers-jmx

 return maskPasswords(modified, index);
return modified;
origin: org.jboss.deployers/jboss-deployers-jmx

/**
* Find first RealClassLoader instance
* and return its ObjectName.
* If none is found return defaultClassloader.
*
* @param cl the classloader
* @return classloader's ObjectName
*/
protected ObjectName findLoaderName(ClassLoader cl)
{
 if (cl == null)
   return defaultClassLoader;
 if (cl instanceof RealClassLoader)
 {
   RealClassLoader rcl = RealClassLoader.class.cast(cl);
   return rcl.getObjectName();
 }
 return findLoaderName(cl.getParent());
}
origin: org.jboss.deployers/jboss-deployers-jmx

VirtualFileFilter filter = new SARArchiveFilter(archives);
List<VirtualFile> archiveFiles = codebaseFile.getChildren(filter);
classpath.addAll(archiveFiles);
origin: org.jboss.deployers/jboss-deployers-jmx

/**
* Create classloading metadata from a loader repository config
* with parent delegation false
* 
* @param deploymentName the deployment name
* @param loaderConfig the loader repository config
* @return the classloading metadata
* @throws DeploymentException for any error
*/
public static ClassLoadingMetaData create(String deploymentName, LoaderRepositoryConfig loaderConfig) throws DeploymentException
{
 return create(deploymentName, loaderConfig, false);
}
origin: org.jboss.deployers/jboss-deployers-jmx

addServiceComponent(unit, service);
origin: org.jboss.deployers/jboss-deployers-jmx

  @Override
  public void deploy(DeploymentUnit unit, ServiceDeployment metaData) throws DeploymentException
  {
   ClassLoadingMetaData classLoadingMetaData = unit.getAttachment(ClassLoadingMetaData.class);
   if (classLoadingMetaData != null)
     return;

   LoaderRepositoryConfig config = metaData.getLoaderRepositoryConfig();
   if (config != null)
     LoaderRepositoryConfigHelper.create(unit, config);
  }
}
origin: org.jboss.jbossas/jboss-as-connector

  public void deploy(DeploymentUnit unit, ManagedConnectionFactoryDeploymentGroup deployment) throws DeploymentException
  {
   ClassLoadingMetaData classLoadingMetaData = unit.getAttachment(ClassLoadingMetaData.class);
   if (classLoadingMetaData != null)
     return;
   
   LoaderRepositoryConfig loaderConfig = deployment.getLoaderRepositoryConfig();
   if (loaderConfig == null)
     return;

   LoaderRepositoryConfigHelper.create(unit, loaderConfig);
  }
}
origin: org.jboss.deployers/jboss-deployers-jmx

/**
* Populate the deployment's classloading metadata from a loader repository config
* 
* @param unit the deployment unit
* @param loaderConfig the loader repository config
* @param parentDelegation the default value for parent delegation
* @return the classloading metadata
* @throws DeploymentException for any error
*/
public static ClassLoadingMetaData create(DeploymentUnit unit, LoaderRepositoryConfig loaderConfig, boolean parentDelegation) throws DeploymentException
{
 if (unit == null)
   throw new IllegalArgumentException("Null unit");
 
 ClassLoadingMetaData clmd = unit.getAttachment(ClassLoadingMetaData.class);
 if (clmd != null)
   return clmd;
 
 clmd = create(unit.getName(), loaderConfig, parentDelegation);
 if (clmd != null)
   unit.addAttachment(ClassLoadingMetaData.class, clmd);
 return clmd;
}
origin: org.jboss.jbossas/jboss-as-server

return LoaderRepositoryConfigHelper.create(name, repositoryConfig, parentDelegation);
org.jboss.system.deployers

Most used classes

  • LoaderRepositoryConfigHelper
    LoaderRepositoryConfigHelper.
  • SARArchiveFilter
    SARArchiveFilter.
  • SARDeployer
    SARDeployer. This deployer is responsible for looking for -service.xml and creating the metadata obj
  • ServiceClassLoaderDeployer
    ServiceClassLoaderDeployer
  • ServiceDeployer
    ServiceDeployer. This deployer is responsible for deploying services of type ServiceDeployment.
  • ServiceDeploymentDeployer$ServiceMetaDataVisitor,
  • ServiceDeploymentDeployer,
  • ManagementObjectClass,
  • SecurityActions$TCLAction$UTIL,
  • SecurityActions$TCLAction,
  • SecurityActions,
  • ServiceDeploymentComponentMapper,
  • ServiceMetaDataICF
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now