naming/src/main/java/org/jboss/as/naming/ServiceReferenceObjectFactory.java
public static Reference createReference(final ServiceName service, Class<? extends ServiceReferenceObjectFactory> factory) {
        return ModularReference.create(Context.class, new ServiceNameRefAdr("srof", service), factory);
    }
public static Reference createReference(final ServiceName service, Class<? extends ServiceReferenceObjectFactory> factory) {
        return ModularReference.create(Context.class, new ServiceNameRefAdr("srof", service), factory);
    }
public static Reference createReference ( final ServiceName service , Class < ? extends ServiceReferenceObjectFactory > factory ) { return ModularReference . create ( Context . class , new ServiceNameRefAdr ( "srof" , service ) , factory ) ; }
Create a reference to a sub class of {@link ServiceReferenceObjectFactory} that injects the value of the given service.
Create a reference to a sub class of {