FeatureLock merged with DefaultFeatureLock
Description
We recently completed [https://jira.codehaus.org/browse/GEOT-3055" title="Query merge with DefaultQuery" class="issue-link" data-issue-key="GEOT-3055"><del>GEOT-3055</del> to merge Query with DefaultQuery.
Problem was Query was not all of the data structure involved in making a request. The rest of it was FeatureLock.
And this one is even more messed up, with a Factory, a default implementation and so forth. The same story applies, the interface is not earning its keep, and the complexity is not warranted. This time it is a bit easier as FeatureLock does not define any setter methods.
Same solution applies:
class FeatureLock {
authorization;
duration;duration ){
.authorization = authorization;
.duration = duration;
}
getDuration(){
duration;
}
...
}
class DefaultFeatureLock FeatureLock {
DefaultFeatureLock( duration ){
( id, duration );
}
...
}