Adding some more logging for importing entities
parent
dfb25f0d38
commit
2cfbfc80ea
|
|
@ -97,7 +97,8 @@ public abstract class AbstractEntityImExporter<T extends Exportable> {
|
||||||
* containers usually create a {@link java.lang.reflect.Proxy} class and
|
* containers usually create a {@link java.lang.reflect.Proxy} class and
|
||||||
* there is no portable way to unproxy a class.
|
* there is no portable way to unproxy a class.
|
||||||
*
|
*
|
||||||
* <strong>This method is not intended to be overriden, but CDI beans can't have final methods.</strong>
|
* <strong>This method is not intended to be overriden, but CDI beans can't
|
||||||
|
* have final methods.</strong>
|
||||||
*
|
*
|
||||||
* @return A {@link Set} of exportable entity classes which should be
|
* @return A {@link Set} of exportable entity classes which should be
|
||||||
* processed before the entities which are processed by this
|
* processed before the entities which are processed by this
|
||||||
|
|
@ -112,7 +113,8 @@ public abstract class AbstractEntityImExporter<T extends Exportable> {
|
||||||
* This method should only be called by the implementation of the
|
* This method should only be called by the implementation of the
|
||||||
* {@link #init()} method.
|
* {@link #init()} method.
|
||||||
*
|
*
|
||||||
* <strong>This method is not intended to be overriden, but CDI beans can't have final methods.</strong>
|
* <strong>This method is not intended to be overriden, but CDI beans can't
|
||||||
|
* have final methods.</strong>
|
||||||
*
|
*
|
||||||
* @param requiredEntities The additional required entities.
|
* @param requiredEntities The additional required entities.
|
||||||
*/
|
*/
|
||||||
|
|
@ -165,7 +167,7 @@ public abstract class AbstractEntityImExporter<T extends Exportable> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reloads the entity to export. Entities become detacted for several
|
* Reloads the entity to export. Entities become detacted for several
|
||||||
* reasons before they are passed to the null null null null null null null {@link #exportEntity(org.libreccm.imexport.Exportable) method. The
|
* reasons before they are passed to the null null null null null null null null {@link #exportEntity(org.libreccm.imexport.Exportable) method. The
|
||||||
* implementation of this should reload the passed entity.
|
* implementation of this should reload the passed entity.
|
||||||
*
|
*
|
||||||
* @param entity The entity to reload.
|
* @param entity The entity to reload.
|
||||||
|
|
|
||||||
|
|
@ -323,7 +323,8 @@ public class ImportExport {
|
||||||
.lines()
|
.lines()
|
||||||
.collect(Collectors.joining("\n"));
|
.collect(Collectors.joining("\n"));
|
||||||
|
|
||||||
imExporter.importEntity(data);
|
final Exportable entity = imExporter.importEntity(data);
|
||||||
|
LOGGER.info("Imported entity {}", entity.toString());
|
||||||
} catch (IOException
|
} catch (IOException
|
||||||
| FileDoesNotExistException
|
| FileDoesNotExistException
|
||||||
| FileAccessException
|
| FileAccessException
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue