Search in sources :

Example 1 with PersistentResourceDefinition

use of org.jboss.as.controller.PersistentResourceDefinition in project wildfly by wildfly.

the class ServerDefinition method getChildren.

@Override
protected List<? extends PersistentResourceDefinition> getChildren() {
    List<PersistentResourceDefinition> children = new ArrayList();
    // Static resources
    children.addAll(Arrays.asList(// HA policy
    LiveOnlyDefinition.INSTANCE, ReplicationMasterDefinition.INSTANCE, ReplicationSlaveDefinition.INSTANCE, ReplicationColocatedDefinition.INSTANCE, SharedStoreMasterDefinition.INSTANCE, SharedStoreSlaveDefinition.INSTANCE, SharedStoreColocatedDefinition.INSTANCE, AddressSettingDefinition.INSTANCE, SecuritySettingDefinition.INSTANCE, // Connectors
    HTTPConnectorDefinition.INSTANCE, RemoteTransportDefinition.CONNECTOR_INSTANCE, InVMTransportDefinition.CONNECTOR_INSTANCE, GenericTransportDefinition.CONNECTOR_INSTANCE, // Acceptors
    HTTPAcceptorDefinition.INSTANCE, RemoteTransportDefinition.ACCEPTOR_INSTANCE, InVMTransportDefinition.ACCEPTOR_INSTANCE, GenericTransportDefinition.ACCEPTOR_INSTANCE, BroadcastGroupDefinition.INSTANCE, DiscoveryGroupDefinition.INSTANCE, BridgeDefinition.INSTANCE, ClusterConnectionDefinition.INSTANCE, DivertDefinition.INSTANCE, ConnectorServiceDefinition.INSTANCE, GroupingHandlerDefinition.INSTANCE, // JMS resources
    LegacyConnectionFactoryDefinition.INSTANCE, PooledConnectionFactoryDefinition.INSTANCE));
    // Dynamic resources (depending on registerRuntimeOnly)
    children.add(new QueueDefinition(registerRuntimeOnly, MessagingExtension.QUEUE_PATH));
    children.add(new JMSQueueDefinition(false, registerRuntimeOnly));
    children.add(new JMSTopicDefinition(false, registerRuntimeOnly));
    children.add(new ConnectionFactoryDefinition(registerRuntimeOnly));
    return children;
}
Also used : JMSTopicDefinition(org.wildfly.extension.messaging.activemq.jms.JMSTopicDefinition) PersistentResourceDefinition(org.jboss.as.controller.PersistentResourceDefinition) JMSQueueDefinition(org.wildfly.extension.messaging.activemq.jms.JMSQueueDefinition) ArrayList(java.util.ArrayList) ConnectionFactoryDefinition(org.wildfly.extension.messaging.activemq.jms.ConnectionFactoryDefinition) PooledConnectionFactoryDefinition(org.wildfly.extension.messaging.activemq.jms.PooledConnectionFactoryDefinition) LegacyConnectionFactoryDefinition(org.wildfly.extension.messaging.activemq.jms.legacy.LegacyConnectionFactoryDefinition) JMSQueueDefinition(org.wildfly.extension.messaging.activemq.jms.JMSQueueDefinition)

Aggregations

ArrayList (java.util.ArrayList)1 PersistentResourceDefinition (org.jboss.as.controller.PersistentResourceDefinition)1 ConnectionFactoryDefinition (org.wildfly.extension.messaging.activemq.jms.ConnectionFactoryDefinition)1 JMSQueueDefinition (org.wildfly.extension.messaging.activemq.jms.JMSQueueDefinition)1 JMSTopicDefinition (org.wildfly.extension.messaging.activemq.jms.JMSTopicDefinition)1 PooledConnectionFactoryDefinition (org.wildfly.extension.messaging.activemq.jms.PooledConnectionFactoryDefinition)1 LegacyConnectionFactoryDefinition (org.wildfly.extension.messaging.activemq.jms.legacy.LegacyConnectionFactoryDefinition)1