public class URLFactoryService extends URLFactory
| Constructor and Description |
|---|
URLFactoryService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPlugin(URLFactoryPlugin plugin) |
<R,U extends PortalURL<R,U>> |
newURL(ResourceType<R,U> resourceType,
URLContext context)
Creates a new url or return null if the resource type cannot be resolved to an url.
|
public <R,U extends PortalURL<R,U>> U newURL(ResourceType<R,U> resourceType, URLContext context) throws NullPointerException
URLFactorynewURL in class URLFactoryresourceType - the resource typecontext - the contextNullPointerException - if the resource type or the context is nullpublic void addPlugin(URLFactoryPlugin plugin)
Copyright © 2017 JBoss by Red Hat. All Rights Reserved.