Skip to content

Commit

Permalink
Fix the EJB3 subsystem description
Browse files Browse the repository at this point in the history
  • Loading branch information
jaikiran authored and n1hility committed Aug 17, 2011
1 parent 4e2b471 commit d7d0f62
Showing 1 changed file with 5 additions and 6 deletions.
Expand Up @@ -45,20 +45,19 @@
import static org.jboss.as.ejb3.subsystem.EJB3SubsystemModel.PATH;
import static org.jboss.as.ejb3.subsystem.EJB3SubsystemModel.RELATIVE_TO;
import static org.jboss.as.ejb3.subsystem.EJB3SubsystemModel.SERVICE;
import static org.jboss.as.ejb3.subsystem.EJB3SubsystemModel.STRICT_MAX_BEAN_INSTANCE_POOL;

/**
* Static utilities containing subsystem resource and operation descriptions. Separated from the
* {@link DescriptionProvider} implementations so the cost of loading this code doesn't
* get incurred during boot time
*
* <p/>
* User: jpai
*/
public class EJB3SubsystemDescriptions {

static final String RESOURCE_NAME = EJB3SubsystemProviders.class.getPackage().getName() + ".LocalDescriptions";

public static final String BRIDGE = "bridge";

static final ModelNode getSubystemDescription(final Locale locale) {
final ResourceBundle bundle = getResourceBundle(locale);

Expand Down Expand Up @@ -91,9 +90,9 @@ static final ModelNode getSubystemDescription(final Locale locale) {
subsystem.get(CHILDREN, SERVICE, MIN_OCCURS).set(0);
subsystem.get(CHILDREN, SERVICE, MODEL_DESCRIPTION);

subsystem.get(CHILDREN, BRIDGE, DESCRIPTION).set(bundle.getString("ejb3.strict-max-bean-instance-pool"));
subsystem.get(CHILDREN, BRIDGE, MIN_OCCURS).set(0);
subsystem.get(CHILDREN, BRIDGE, MODEL_DESCRIPTION);
subsystem.get(CHILDREN, STRICT_MAX_BEAN_INSTANCE_POOL, DESCRIPTION).set(bundle.getString("ejb3.strict-max-bean-instance-pool"));
subsystem.get(CHILDREN, STRICT_MAX_BEAN_INSTANCE_POOL, MIN_OCCURS).set(0);
subsystem.get(CHILDREN, STRICT_MAX_BEAN_INSTANCE_POOL, MODEL_DESCRIPTION);

return subsystem;
}
Expand Down

0 comments on commit d7d0f62

Please sign in to comment.