/** * Sets the locator and serviceId for the factory. This * descriptor must be of type PROVIDE_METHOD * * @param locatorId The locatorId of the factory associated with * this method * @param serviceId The serviceId of the factory associated with * this method */ public void setFactoryId(Long locatorId, Long serviceId) { if (!getDescriptorType().equals(DescriptorType.PROVIDE_METHOD)) { throw new IllegalStateException("The descriptor type must be PROVIDE_METHOD"); } factoryServiceId = serviceId; factoryLocatorId = locatorId; }
/** * Sets the locator and serviceId for the factory. This * descriptor must be of type PROVIDE_METHOD * * @param locatorId The locatorId of the factory associated with * this method * @param serviceId The serviceId of the factory associated with * this method */ public void setFactoryId(Long locatorId, Long serviceId) { if (!getDescriptorType().equals(DescriptorType.PROVIDE_METHOD)) { throw new IllegalStateException("The descriptor type must be PROVIDE_METHOD"); } factoryServiceId = serviceId; factoryLocatorId = locatorId; }
/** * Sets the locator and serviceId for the factory. This * descriptor must be of type PROVIDE_METHOD * * @param locatorId The locatorId of the factory associated with * this method * @param serviceId The serviceId of the factory associated with * this method */ public void setFactoryId(Long locatorId, Long serviceId) { if (!getDescriptorType().equals(DescriptorType.PROVIDE_METHOD)) { throw new IllegalStateException("The descriptor type must be PROVIDE_METHOD"); } factoryServiceId = serviceId; factoryLocatorId = locatorId; }
/** * Sets the locator and serviceId for the factory. This * descriptor must be of type PROVIDE_METHOD * * @param locatorId The locatorId of the factory associated with * this method * @param serviceId The serviceId of the factory associated with * this method */ public void setFactoryId(Long locatorId, Long serviceId) { if (!getDescriptorType().equals(DescriptorType.PROVIDE_METHOD)) { throw new IllegalStateException("The descriptor type must be PROVIDE_METHOD"); } factoryServiceId = serviceId; factoryLocatorId = locatorId; }