RM-2130 Make CollectionPostMethodInvocationProcessor concrete.

+review RM-113

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/DEV/ENFORCE@107253 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tom Page
2015-06-26 15:36:13 +00:00
parent 423850002e
commit b1e8da1198
3 changed files with 7 additions and 84 deletions

View File

@@ -27,11 +27,8 @@ import java.util.Iterator;
* @author Tuna Aksoy
* @since 3.0
*/
public abstract class CollectionPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
public class CollectionPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
{
/**
* @see org.alfresco.module.org_alfresco_module_rm.classification.interceptor.processor.BasePostMethodInvocationProcessor#process(java.lang.Object)
*/
@SuppressWarnings({ "rawtypes" })
@Override
public <T> T process(T object)
@@ -57,4 +54,10 @@ public abstract class CollectionPostMethodInvocationProcessor extends BasePostMe
return result;
}
@Override
protected Class<?> getClassName()
{
return Collection.class;
}
}

View File

@@ -1,40 +0,0 @@
/*
* Copyright (C) 2005-2015 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
package org.alfresco.module.org_alfresco_module_rm.classification.interceptor.processor;
import java.util.List;
/**
* List Post Method Invocation Processor
*
* @author Tuna Aksoy
* @since 3.0
*/
public class ListPostMethodInvocationProcessor extends CollectionPostMethodInvocationProcessor
{
/**
* @see org.alfresco.module.org_alfresco_module_rm.classification.interceptor.processor.BasePostMethodInvocationProcessor#getClassName()
*/
@SuppressWarnings("rawtypes")
@Override
protected Class<List> getClassName()
{
return List.class;
}
}

View File

@@ -1,40 +0,0 @@
/*
* Copyright (C) 2005-2015 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
package org.alfresco.module.org_alfresco_module_rm.classification.interceptor.processor;
import java.util.Set;
/**
* Set Post Method Invocation Processor
*
* @author Tuna Aksoy
* @since 3.0
*/
public class SetPostMethodInvocationProcessor extends CollectionPostMethodInvocationProcessor
{
/**
* @see org.alfresco.module.org_alfresco_module_rm.classification.interceptor.processor.BasePostMethodInvocationProcessor#getClassName()
*/
@SuppressWarnings("rawtypes")
@Override
protected Class<Set> getClassName()
{
return Set.class;
}
}