Search in sources :

Example 1 with ClassLoaderProvider

use of org.jboss.wsf.spi.classloading.ClassLoaderProvider in project wildfly by wildfly.

the class DeploymentAspectsProvider method getSortedDeploymentAspects.

public static synchronized List<DeploymentAspect> getSortedDeploymentAspects() {
    if (aspects == null) {
        final List<DeploymentAspect> deploymentAspects = new LinkedList<DeploymentAspect>();
        final ClassLoaderProvider provider = ClassLoaderProvider.getDefaultProvider();
        final ClassLoader cl = provider.getServerIntegrationClassLoader();
        deploymentAspects.addAll(getDeploymentAspects(cl, "/META-INF/stack-agnostic-deployment-aspects.xml"));
        deploymentAspects.addAll(getDeploymentAspects(cl, "/META-INF/stack-specific-deployment-aspects.xml"));
        aspects = DeploymentAspectSorter.getInstance().sort(deploymentAspects);
    }
    return aspects;
}
Also used : DeploymentAspect(org.jboss.wsf.spi.deployment.DeploymentAspect) ClassLoaderProvider(org.jboss.wsf.spi.classloading.ClassLoaderProvider) LinkedList(java.util.LinkedList)

Aggregations

LinkedList (java.util.LinkedList)1 ClassLoaderProvider (org.jboss.wsf.spi.classloading.ClassLoaderProvider)1 DeploymentAspect (org.jboss.wsf.spi.deployment.DeploymentAspect)1