Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagec#
public void Register(IRegistrationContext context) {
    context.Register(new CustomContentManagerFactory());
}