public interface IParaViewProxyFactory
IParaViewProxyBuilder
instances. Client code
can request a builder by calling #getProxyBuilder(URI)
.
This interface is designed to be provided and referenced via OSGi.
Modifier and Type | Method and Description |
---|---|
IParaViewProxy |
createProxy(java.net.URI uri)
Gets a proxy for the provided file based on its extension.
|
java.util.Set<java.lang.String> |
getExtensions()
Gets the set of supported extensions for all registered proxy builders.
|
boolean |
registerProxyBuilder(IParaViewProxyBuilder builder)
Registers a new proxy builder using the builder's supported extensions.
|
boolean |
unregisterProxyBuilder(IParaViewProxyBuilder builder)
Unregisters the specified proxy builder.
|
IParaViewProxy createProxy(java.net.URI uri) throws java.lang.NullPointerException, java.lang.IllegalArgumentException
uri
- The file for which a proxy will be created.java.lang.NullPointerException
- If the specified URI is null.java.lang.IllegalArgumentException
- If the specified URI's extension is not supported.java.util.Set<java.lang.String> getExtensions()
null
, and should not change throughout
the factory's lifecycle, as builders will be registered via OSGi.boolean registerProxyBuilder(IParaViewProxyBuilder builder)
This method will usually be called by OSGi.
builder
- The builder to register. If null
, nothing is
registered.boolean unregisterProxyBuilder(IParaViewProxyBuilder builder)
This method will usually be called by OSGi.
builder
- The builder to unregister. If null
, nothing is
unregistered.