Skip to content

Commit 2165451

Browse files
committed
Minor JavaDoc tweak to make instantiation semantics clearer for component lookup
1 parent f22afff commit 2165451

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

olcut-core/src/main/java/com/oracle/labs/mlrg/olcut/config/ConfigurationManager.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,8 @@ public Object lookupSerializedObject(String objectName) {
12821282
}
12831283
/**
12841284
* Looks up a configurable component by its name, instantiating it if
1285-
* necessary.
1285+
* necessary. If the component was previously created, the same instance
1286+
* will be returned.
12861287
*
12871288
* @param instanceName the name of the component that we want.
12881289
* @return the instantiated component, or <code>null</code> if no such named
@@ -1314,7 +1315,8 @@ public Configurable lookup(String instanceName, boolean reuseComponent)
13141315
/**
13151316
* Looks up a configurable component by name. If a component registry exists in the
13161317
* current configuration manager, it will be checked for the given component name.
1317-
* If the component does not exist, it will be created.
1318+
* If the component does not exist, it will be created, otherwise the existing
1319+
* instance will be returned.
13181320
*
13191321
* @param instanceName the name of the component
13201322
* @param cl a listener for this component that is notified when components

0 commit comments

Comments
 (0)