Java Code Examples for org.jboss.as.controller.registry.ManagementResourceRegistration#registerAdditionalRuntimePackages()

The following examples show how to use org.jboss.as.controller.registry.ManagementResourceRegistration#registerAdditionalRuntimePackages() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LoggingResourceDefinition.java    From wildfly-core with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Override
public void registerAdditionalRuntimePackages(ManagementResourceRegistration resourceRegistration) {
    resourceRegistration.registerAdditionalRuntimePackages(RuntimePackageDependency.optional(APACHE_COMMONS_LOGGING),
            RuntimePackageDependency.optional(SLF4J),
            RuntimePackageDependency.optional(SLF4J_STUB),
            // The next ones are Loaded by LoggingExtension
            RuntimePackageDependency.optional("org.slf4j.impl"));
}
 
Example 2
Source File: ServerRootResourceDefinition.java    From wildfly-core with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Override
public void registerAdditionalRuntimePackages(ManagementResourceRegistration resourceRegistration) {
    resourceRegistration.registerAdditionalRuntimePackages(
            RuntimePackageDependency.required(IBM_JDK),
            RuntimePackageDependency.optional(WILDFLY_EE_API)
    );
}
 
Example 3
Source File: ElytronDefinition.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void registerAdditionalRuntimePackages(ManagementResourceRegistration resourceRegistration) {
    resourceRegistration.registerAdditionalRuntimePackages(RuntimePackageDependency.required("org.wildfly.security.elytron"));
}
 
Example 4
Source File: RemotingConnectorResource.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void registerAdditionalRuntimePackages(ManagementResourceRegistration resourceRegistration) {
    resourceRegistration.registerAdditionalRuntimePackages(RuntimePackageDependency.required("org.jboss.remoting-jmx"));
}
 
Example 5
Source File: HttpConnectorResource.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void registerAdditionalRuntimePackages(ManagementResourceRegistration resourceRegistration) {
    resourceRegistration.registerAdditionalRuntimePackages(RuntimePackageDependency.required("io.undertow.core"));
}
 
Example 6
Source File: SimpleResourceDefinition.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void registerAdditionalRuntimePackages(final ManagementResourceRegistration resourceRegistration) {
    if (additionalPackages!=null) {
        resourceRegistration.registerAdditionalRuntimePackages(additionalPackages);
    }
}
 
Example 7
Source File: ReadFeatureDescriptionTestCase.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void registerAdditionalRuntimePackages(ManagementResourceRegistration resourceRegistration) {
    resourceRegistration.registerAdditionalRuntimePackages(RuntimePackageDependency.optional(MAIN_RESOURCE_OPT_PACKAGE_NAME),
            RuntimePackageDependency.passive(MAIN_RESOURCE_PASSIVE_PACKAGE_NAME),
            RuntimePackageDependency.required(MAIN_RESOURCE_REQUIRED_PACKAGE_NAME));
}