[
https://issues.apache.org/jira/browse/LANG-1339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16579941#comment-16579941
]
Gilles commented on LANG-1339:
------------------------------
Excerpt from a [ML thread|https://markmail.org/message/65muhoynje4esptt]:
Unless I'm mistaken, the Observer/Observable functionality can be trivially
implemented within the library. In the "observable" class, define
* an inner interface {{CircuitBreaker.Observer}} that declares method
{code}
public void update(CircuitBreaker);
{code}
* a field {{observers}} (of type {{List<Observer>}}),
* a method {{registerObserver(Observer)}} that populates the list,
* a method {{notifyObservers()}}:
{code}
private void notifyObservers() {
for (Observer obs : observers) {
obs.update(this);
}
}
{code}
> Some classes depend on the java.desktop profile
> -----------------------------------------------
>
> Key: LANG-1339
> URL: https://issues.apache.org/jira/browse/LANG-1339
> Project: Commons Lang
> Issue Type: Task
> Reporter: Benedikt Ritter
> Priority: Major
> Labels: Java9
> Fix For: 3.8
>
>
> Commons Lang currently depends on java.desktop. This seems like an
> unnecessary heavy dependency for a library like Commons Lang. We need to find
> a way to fix this, without breaking bc. For more information see
> https://lists.apache.org/thread.html/8db8ec4aa1bdeae3d471ca4f46a21dc7da1a4c6933e1810238b72283@%3Cdev.commons.apache.org%3E
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)