/*
* #%L
* Alfresco Repository
* %%
* Copyright (C) 2005 - 2017 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see
* Works in conjunction with {@link SpringBeanExtension}s and
* {@link SpringExtensionPoint}s to define and start spring based
* {@link ExtensionBundle}s of {@link SingletonExtension}s.
* The spring-context XML sample bellow shows the definition of spring-bundled
* trait-extensions:
*
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
* @author Bogdan Horje
*/
public class SpringExtensionBundle implements InitializingBean
{
private static Log logger = LogFactory.getLog(SpringExtensionBundle.class);
private Listtrue if the current bundle should be
* registered.false if the current bundle should skip extension
* registration
*/
public void setEnabled(boolean enabled)
{
this.enabled = enabled;
}
/**
* Returns whether the current bundle should be registered or not.
*
* @return {@code true} if the current bundle should be registered, otherwise {@code false}
*/
public boolean isEnabled()
{
return enabled;
}
public void setExtensions(List