
org.xwiki.component.embed.EmbeddableComponentManagerCompatibilityAspect.aj Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xwiki-commons-legacy-component-default Show documentation
Show all versions of xwiki-commons-legacy-component-default Show documentation
Legacy module for xwiki-commons-component-default
/*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This 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 2.1 of
* the License, or (at your option) any later version.
*
* This software 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 this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.xwiki.component.embed;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.lang.reflect.Type;
import org.xwiki.component.descriptor.ComponentDescriptor;
import org.xwiki.component.internal.RoleHint;
import org.xwiki.component.manager.ComponentLookupException;
/**
* Add a backward compatibility layer to the {@link EmbeddableComponentManager} class.
*
* @version $Id$
* @since 4.1M1
*/
public privileged aspect EmbeddableComponentManagerCompatibilityAspect
{
@Deprecated
public T EmbeddableComponentManager.lookup(Class role) throws ComponentLookupException
{
return getInstance(role);
}
@Deprecated
public T EmbeddableComponentManager.lookup(Class role, String hint) throws ComponentLookupException
{
return getInstance(role, hint);
}
@Deprecated
public List EmbeddableComponentManager.lookupList(Class role) throws ComponentLookupException
{
return getInstanceList((Type) role);
}
@Deprecated
public Map EmbeddableComponentManager.lookupMap(Class role) throws ComponentLookupException
{
return getInstanceMap((Type) role);
}
@Deprecated
public boolean EmbeddableComponentManager.hasComponent(Class role, String hint)
{
return hasComponent((Type) role, hint);
}
@Deprecated
public boolean EmbeddableComponentManager.hasComponent(Class role)
{
return hasComponent((Type) role);
}
@Deprecated
public ComponentDescriptor EmbeddableComponentManager.getComponentDescriptor(Class role, String hint)
{
return getComponentDescriptor((Type) role, hint);
}
@Deprecated
public void EmbeddableComponentManager.unregisterComponent(Class role, String hint)
{
unregisterComponent((Type) role, hint);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy