public static class ExtendableObject.Extensions extends Object implements Serializable
ExtendableObject
.
public class MyObject extends ... implements ExtendableObject { private Extensions extension = new Extensions(); @Override publicE addExtension(Class<? super E> type, E extension) { return this.extension.add(type,extension); } @Override public E getExtension(Class<E> type) { return this.extension.get(type); } }
Constructor and Description |
---|
Extensions() |
Modifier and Type | Method and Description |
---|---|
<E> E |
add(Class<? super E> type,
E extension) |
<E> E |
get(Class<E> type) |
Copyright © 2017 XDEV Software Corp.. All rights reserved.