T
- class-type to be extended (class-type of original)B
- class-type of extensionpublic class ExtensionManager<T,B extends Extension> extends Object
Constructor and Description |
---|
ExtensionManager(ExtensionFactory<B> factory)
Create a new extension manager.
|
Modifier and Type | Method and Description |
---|---|
B |
createExtension()
Creates and returns an extension object.
|
B |
getExtension(T t)
Creates a new singleton extension object for original t if no such object exists, returns the
old one otherwise.
|
public ExtensionManager(ExtensionFactory<B> factory)
factory
- the extension factory to usepublic B createExtension()
Copyright © 2017. All rights reserved.