org.ops4j.pax.coin.repository
Class RepositoryImpl<T>
java.lang.Object
org.ops4j.pax.coin.repository.RepositoryImpl<T>
- All Implemented Interfaces:
- Repository<T>
public class RepositoryImpl<T>
- extends Object
- implements Repository<T>
Models a ManagedService and it's associated data.
TODO shall we use a concurent hash map?
- Since:
- 0.3.0, February 27, 2008
- Author:
- Alin Dreghiciu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepositoryImpl
public RepositoryImpl(String name)
- Constructor.
- Parameters:
name
- elements type name
- Throws:
org.ops4j.lang.NullArgumentException
- - If name is null or empty
register
public boolean register(T element)
- Specified by:
register
in interface Repository<T>
- See Also:
Repository.register(Object)
unregister
public boolean unregister(T element)
- Specified by:
unregister
in interface Repository<T>
- See Also:
Repository.unregister(Object)
getAll
public Collection<T> getAll()
- Specified by:
getAll
in interface Repository<T>
- See Also:
Repository.getAll()
Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.