Skip to content

Commit

Permalink
Replace redundant ComponentServiceNameFactory with ResourceServiceNam…
Browse files Browse the repository at this point in the history
…eFactory.
  • Loading branch information
pferraro committed May 12, 2017
1 parent 1691af0 commit 5f5c52d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 38 deletions.
Expand Up @@ -24,6 +24,7 @@

import java.util.stream.Stream;

import org.jboss.as.clustering.controller.ResourceServiceNameFactory;
import org.jboss.as.controller.PathAddress;
import org.jboss.as.controller.PathElement;
import org.jboss.msc.service.ServiceName;
Expand All @@ -32,7 +33,7 @@
* Enumerates the configurable cache components
* @author Paul Ferraro
*/
public enum CacheComponent implements ComponentServiceNameFactory {
public enum CacheComponent implements ResourceServiceNameFactory {

MODULE("module"),
EVICTION(EvictionResourceDefinition.PATH),
Expand Down
Expand Up @@ -22,14 +22,15 @@

package org.jboss.as.clustering.infinispan.subsystem;

import org.jboss.as.clustering.controller.ResourceServiceNameFactory;
import org.jboss.as.controller.PathAddress;
import org.jboss.as.controller.PathElement;
import org.jboss.msc.service.ServiceName;

/**
* @author Paul Ferraro
*/
public enum CacheContainerComponent implements ComponentServiceNameFactory {
public enum CacheContainerComponent implements ResourceServiceNameFactory {

MODULE("module"),
SITE("site"),
Expand Down
Expand Up @@ -22,6 +22,7 @@

package org.jboss.as.clustering.infinispan.subsystem;

import org.jboss.as.clustering.controller.ResourceServiceNameFactory;
import org.jboss.as.controller.PathAddress;
import org.jboss.msc.service.ServiceBuilder;
import org.jboss.msc.service.ServiceController;
Expand All @@ -39,7 +40,7 @@ public abstract class ComponentBuilder<C> implements Builder<C>, Value<C> {

private final ServiceName name;

ComponentBuilder(ComponentServiceNameFactory factory, PathAddress parentAddress) {
ComponentBuilder(ResourceServiceNameFactory factory, PathAddress parentAddress) {
this.name = factory.getServiceName(parentAddress);
}

Expand Down

This file was deleted.

Expand Up @@ -23,11 +23,12 @@
package org.jboss.as.clustering.infinispan.subsystem;

import org.jboss.as.clustering.controller.Attribute;
import org.jboss.as.clustering.controller.ResourceServiceNameFactory;

/**
* @author Paul Ferraro
*/
public interface ScheduledThreadPoolDefinition extends ComponentServiceNameFactory {
public interface ScheduledThreadPoolDefinition extends ResourceServiceNameFactory {

Attribute getMaxThreads();

Expand Down
Expand Up @@ -23,11 +23,12 @@
package org.jboss.as.clustering.infinispan.subsystem;

import org.jboss.as.clustering.controller.Attribute;
import org.jboss.as.clustering.controller.ResourceServiceNameFactory;

/**
* @author Paul Ferraro
*/
public interface ThreadPoolDefinition extends ComponentServiceNameFactory {
public interface ThreadPoolDefinition extends ResourceServiceNameFactory {

Attribute getMinThreads();

Expand Down

0 comments on commit 5f5c52d

Please sign in to comment.