org.sonatype.gshell.alias
Class AliasRegistryImpl
java.lang.Object
org.sonatype.gshell.alias.AliasRegistryImpl
- All Implemented Interfaces:
- AliasRegistry
@Singleton
public class AliasRegistryImpl
- extends Object
- implements AliasRegistry
AliasRegistry component.
- Since:
- 2.5
- Author:
- Jason Dillon
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AliasRegistryImpl
@Inject
public AliasRegistryImpl(EventManager events)
registerAlias
public void registerAlias(String name,
String alias)
- Specified by:
registerAlias in interface AliasRegistry
removeAlias
public void removeAlias(String name)
throws NoSuchAliasException
- Specified by:
removeAlias in interface AliasRegistry
- Throws:
NoSuchAliasException
getAlias
public String getAlias(String name)
throws NoSuchAliasException
- Specified by:
getAlias in interface AliasRegistry
- Throws:
NoSuchAliasException
containsAlias
public boolean containsAlias(String name)
- Specified by:
containsAlias in interface AliasRegistry
getAliasNames
public Collection<String> getAliasNames()
getAliases
public Map<String,String> getAliases()
- Specified by:
getAliases in interface AliasRegistry
Copyright © 2008-2011 Sonatype. All Rights Reserved.