Page History
...
Code Block |
---|
@AquimaContentManagerFactory public class CustomContentManagerFactory implements IContentManagerFactory { public IContentManager create(IConnection connection) throws UnsupportedConnectionException { if (connection instanceof ICustomConnection) { return new CustomContentManager((ICustomConnection) connection); } else { throw new UnsupportedConnectionException(connection); } } } |
.NET
From your IWebApplicationPlugin implementation, you may register your factory on the IRegistrationContext in the Register method.
Code Block | ||
---|---|---|
| ||
public void Register(IRegistrationContext context) {
context.Register(new CustomContentManagerFactory());
} |
Overview
Content Tools