Package org.codehaus.plexus.collections
Class AbstractActiveList
java.lang.Object
org.codehaus.plexus.collections.AbstractActiveList
- All Implemented Interfaces:
Iterable
,Collection
,List
,ActiveCollection
,ActiveList
- Direct Known Subclasses:
DefaultActiveList
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.codehaus.plexus.PlexusContainer
private org.codehaus.plexus.logging.Logger
private String
Fields inherited from interface org.codehaus.plexus.collections.ActiveList
ROLE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
AbstractActiveList
(org.codehaus.plexus.PlexusContainer container, String role) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int arg0, Collection arg1) boolean
addAll
(Collection arg0) protected final List
void
clear()
final void
contextualize
(org.codehaus.plexus.context.Context context) final void
enableLogging
(org.codehaus.plexus.logging.Logger logger) protected final List
getList()
protected final org.codehaus.plexus.logging.Logger
final String
getRole()
Retrive the role, or type of component, which is collected in the current instance.remove
(int index) boolean
boolean
removeAll
(Collection arg0) boolean
retainAll
(Collection arg0) protected final void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.codehaus.plexus.collections.ActiveCollection
checkedIsEmpty, checkedSize, isEmpty, size
Methods inherited from interface org.codehaus.plexus.collections.ActiveList
checkedContains, checkedContainsAll, checkedGet, checkedIndexOf, checkedIterator, checkedLastIndexOf, checkedListIterator, checkedListIterator, checkedSubList, checkedToArray, checkedToArray
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, replaceAll, size, sort, spliterator, subList, toArray, toArray
-
Field Details
-
role
-
container
private org.codehaus.plexus.PlexusContainer container -
logger
private org.codehaus.plexus.logging.Logger logger
-
-
Constructor Details
-
AbstractActiveList
protected AbstractActiveList() -
AbstractActiveList
-
-
Method Details
-
add
- Specified by:
add
in interfaceCollection
- Specified by:
add
in interfaceList
-
add
-
addAll
- Specified by:
addAll
in interfaceCollection
- Specified by:
addAll
in interfaceList
-
addAll
-
clear
public void clear()- Specified by:
clear
in interfaceCollection
- Specified by:
clear
in interfaceList
-
remove
- Specified by:
remove
in interfaceCollection
- Specified by:
remove
in interfaceList
-
remove
-
removeAll
- Specified by:
removeAll
in interfaceCollection
- Specified by:
removeAll
in interfaceList
-
retainAll
- Specified by:
retainAll
in interfaceCollection
- Specified by:
retainAll
in interfaceList
-
set
-
checkedGetList
protected final List checkedGetList() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
-
getList
-
getRole
Description copied from interface:ActiveCollection
Retrive the role, or type of component, which is collected in the current instance. The current collection will only "contain" elements that specify this role in their component definitions.- Specified by:
getRole
in interfaceActiveCollection
-
setRole
-
contextualize
public final void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException - Throws:
org.codehaus.plexus.context.ContextException
-
getLogger
protected final org.codehaus.plexus.logging.Logger getLogger() -
enableLogging
public final void enableLogging(org.codehaus.plexus.logging.Logger logger)
-