git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added SetterConfiguration class for configuring how setters correspond to required...
[utils]
/
system
/
general
/
src
/
main
/
java
/
org
/
wamblee
/
system
/
core
/
RequiredInterface.java
diff --git
a/system/general/src/main/java/org/wamblee/system/core/RequiredInterface.java
b/system/general/src/main/java/org/wamblee/system/core/RequiredInterface.java
index 0fea736057bbc32849ef977004a91520b7a3f2ff..d3a4e5229483f642be14e8494736f46905f7cd9a 100644
(file)
--- a/
system/general/src/main/java/org/wamblee/system/core/RequiredInterface.java
+++ b/
system/general/src/main/java/org/wamblee/system/core/RequiredInterface.java
@@
-20,7
+20,13
@@
public interface RequiredInterface {
/**
* Name for the interface.
*/
/**
* Name for the interface.
*/
- public String getName();
+ String getName();
+
+ /**
+ * @return True iff the required interface is optional.
+ */
+ boolean isOptional();
+
/**
* Checks if the service is provided by a given provided interface.
/**
* Checks if the service is provided by a given provided interface.
@@
-36,16
+42,8
@@
public interface RequiredInterface {
void setProvider(ProvidedInterface aProvider);
/**
void setProvider(ProvidedInterface aProvider);
/**
- * Gets
t
the provider interface.
+ * Gets the provider interface.
* @return Provider or null if not set.
*/
ProvidedInterface getProvider();
* @return Provider or null if not set.
*/
ProvidedInterface getProvider();
-
- /**
- * Gets the implementation of the required interface.
- * @param <T>
- * @param aClass Interface type.
- * @return Interface implementation or null if not known yet.
- */
- <T> T getImplementation(Class<T> aClass);
}
}