Skip to content
Snippets Groups Projects
Commit b8c3842c authored by cramakri's avatar cramakri
Browse files

LMS-2131 Added support for TopLevelDataHandler in the DSS-RPC mechanism.

SVN: 20468
parent 05ff2f9c
No related branches found
No related tags found
No related merge requests found
...@@ -50,9 +50,10 @@ public class JythonPlateDataSetHandler extends JythonTopLevelDataSetHandler<Data ...@@ -50,9 +50,10 @@ public class JythonPlateDataSetHandler extends JythonTopLevelDataSetHandler<Data
*/ */
@Override @Override
protected IDataSetRegistrationDetailsFactory<DataSetInformation> createObjectFactory( protected IDataSetRegistrationDetailsFactory<DataSetInformation> createObjectFactory(
PythonInterpreter interpreter) PythonInterpreter interpreter, DataSetInformation userProvidedDataSetInformationOrNull)
{ {
return new JythonPlateDatasetFactory(getRegistratorState()); return new JythonPlateDatasetFactory(getRegistratorState(),
userProvidedDataSetInformationOrNull);
} }
public static class JythonPlateDatasetFactory extends JythonObjectFactory<DataSetInformation> public static class JythonPlateDatasetFactory extends JythonObjectFactory<DataSetInformation>
...@@ -61,11 +62,14 @@ public class JythonPlateDataSetHandler extends JythonTopLevelDataSetHandler<Data ...@@ -61,11 +62,14 @@ public class JythonPlateDataSetHandler extends JythonTopLevelDataSetHandler<Data
private final IDataSetRegistrationDetailsFactory<FeatureVectorDataSetInformation> featureVectorDatasetFactory; private final IDataSetRegistrationDetailsFactory<FeatureVectorDataSetInformation> featureVectorDatasetFactory;
public JythonPlateDatasetFactory(OmniscientTopLevelDataSetRegistratorState registratorState) public JythonPlateDatasetFactory(
OmniscientTopLevelDataSetRegistratorState registratorState,
DataSetInformation userProvidedDataSetInformationOrNull)
{ {
super(registratorState); super(registratorState, userProvidedDataSetInformationOrNull);
this.imageDatasetFactory = this.imageDatasetFactory =
new JythonObjectFactory<ImageDataSetInformation>(this.registratorState) new JythonObjectFactory<ImageDataSetInformation>(this.registratorState,
this.userProvidedDataSetInformationOrNull)
{ {
@Override @Override
protected ImageDataSetInformation createDataSetInformation() protected ImageDataSetInformation createDataSetInformation()
...@@ -74,7 +78,8 @@ public class JythonPlateDataSetHandler extends JythonTopLevelDataSetHandler<Data ...@@ -74,7 +78,8 @@ public class JythonPlateDataSetHandler extends JythonTopLevelDataSetHandler<Data
} }
}; };
this.featureVectorDatasetFactory = this.featureVectorDatasetFactory =
new JythonObjectFactory<FeatureVectorDataSetInformation>(this.registratorState) new JythonObjectFactory<FeatureVectorDataSetInformation>(this.registratorState,
this.userProvidedDataSetInformationOrNull)
{ {
@Override @Override
protected FeatureVectorDataSetInformation createDataSetInformation() protected FeatureVectorDataSetInformation createDataSetInformation()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment