private Object createProxy(ServiceResources resources, ObjectCreator creator, boolean preventDecoration) { String serviceId = resources.getServiceId(); Class serviceInterface = resources.getServiceInterface(); String toString = format("<Proxy for %s(%s)>", serviceId, serviceInterface.getName()); ServiceProxyToken token = SerializationSupport.createToken(serviceId); final Class serviceImplementation = preventDecoration || serviceInterface == TypeCoercer.class ? null : resources.getServiceImplementation(); return createProxyInstance(creator, token, serviceInterface, serviceImplementation, toString); }
private Object createProxy(ServiceResources resources, ObjectCreator creator, boolean preventDecoration) { String serviceId = resources.getServiceId(); Class serviceInterface = resources.getServiceInterface(); String toString = format("<Proxy for %s(%s)>", serviceId, serviceInterface.getName()); ServiceProxyToken token = SerializationSupport.createToken(serviceId); final Class serviceImplementation = preventDecoration || serviceInterface == TypeCoercer.class ? null : resources.getServiceImplementation(); return createProxyInstance(creator, token, serviceInterface, serviceImplementation, toString); }