本文整理汇总了Java中org.jboss.as.controller.ExpressionResolver.TEST_RESOLVER属性的典型用法代码示例。如果您正苦于以下问题:Java ExpressionResolver.TEST_RESOLVER属性的具体用法?Java ExpressionResolver.TEST_RESOLVER怎么用?Java ExpressionResolver.TEST_RESOLVER使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.jboss.as.controller.ExpressionResolver
的用法示例。
在下文中一共展示了ExpressionResolver.TEST_RESOLVER属性的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testGetServerLaunchCommand
/**
* Test of getServerLaunchCommand method, of class
* ManagedServerBootCmdFactory.
*/
@Test
public void testGetServerLaunchCommand() throws UnknownHostException {
System.out.println("getServerLaunchCommand");
ManagedServerBootCmdFactory instance = new ManagedServerBootCmdFactory("test-server", getDomainModel(), getHostModel(), getTestHostEnvironment(), ExpressionResolver.TEST_RESOLVER, false);
List<String> result = instance.getServerLaunchCommand(true);
Assert.assertThat(result.size(), is(notNullValue()));
Assert.assertThat(result.size(), is(16));
boolean sawDServer = false;
boolean sawDpcid = false;
for (String arg : result) {
if (arg.startsWith("-Djboss.server.log.dir")) {
Assert.assertThat(arg, is(not("-Djboss.server.log.dir=/tmp/")));
} else if (arg.startsWith("-Djboss.server.temp.dir")) {
Assert.assertThat(arg, is(not("-Djboss.server.temp.dir=/tmp/")));
} else if (arg.startsWith("-Djboss.domain.log.dir")) {
Assert.assertThat(arg, is("-Djboss.domain.log.dir=/tmp/"));
} else if (arg.equals("-D[" + ManagedServer.getServerProcessName("test-server") + "]")) {
sawDServer = true;
} else if (arg.startsWith("-D[pcid:") && arg.endsWith("]")) {
sawDpcid = true;
}
}
Assert.assertTrue(sawDServer);
Assert.assertTrue(sawDpcid);
}
示例2: ModelControllerService
ModelControllerService(final ControlledProcessState processState, final StringConfigurationPersister persister, final ServerDelegatingResourceDefinition rootResourceDefinition) {
super(ProcessType.EMBEDDED_SERVER, new RunningModeControl(RunningMode.ADMIN_ONLY), persister, processState, rootResourceDefinition, null, ExpressionResolver.TEST_RESOLVER,
AuditLogger.NO_OP_LOGGER, new DelegatingConfigurableAuthorizer(), new ManagementSecurityIdentitySupplier(), new CapabilityRegistry(true));
this.persister = persister;
this.processState = processState;
this.rootResourceDefinition = rootResourceDefinition;
Properties properties = new Properties();
properties.put("jboss.home.dir", System.getProperty("basedir", ".") + File.separatorChar + "target");
final String hostControllerName = "hostControllerName"; // Host Controller name may not be null when in a managed domain
environment = new ServerEnvironment(hostControllerName, properties, new HashMap<String, String>(), null, null,
ServerEnvironment.LaunchType.DOMAIN, null, ProductConfig.fromFilesystemSlot(Module.getBootModuleLoader(), ".", properties), false);
extensionRegistry =
new ExtensionRegistry(ProcessType.STANDALONE_SERVER, new RunningModeControl(RunningMode.NORMAL), null, null, null, RuntimeHostControllerInfoAccessor.SERVER);
capabilityRegistry = new CapabilityRegistry(processType.isServer());
}
示例3: TestModelControllerService
protected TestModelControllerService(final ProcessType processType, final ConfigurationPersister configurationPersister, final ControlledProcessState processState,
final ResourceDefinition rootResourceDefinition, final ManagedAuditLogger auditLogger, final DelegatingConfigurableAuthorizer authorizer) {
super(processType, new RunningModeControl(RunningMode.NORMAL), configurationPersister, processState, rootResourceDefinition,
null, ExpressionResolver.TEST_RESOLVER, auditLogger, authorizer == null ? new DelegatingConfigurableAuthorizer() : authorizer,
new ManagementSecurityIdentitySupplier(), new CapabilityRegistry(true));
this.processState = processState;
this.processType = processType;
}
示例4: testCreateConfiguration
/**
* Test of createConfiguration method, of class ManagedServerBootCmdFactory.
*/
@Test
public void testCreateConfiguration() throws UnknownHostException {
System.out.println("createConfiguration");
ManagedServerBootCmdFactory instance = new ManagedServerBootCmdFactory("test-server", getDomainModel(), getHostModel(), getTestHostEnvironment(), ExpressionResolver.TEST_RESOLVER, false);
ManagedServerBootConfiguration result = instance.createConfiguration();
Assert.assertNotNull(result);
}
示例5: TestModelControllerService
protected TestModelControllerService(final ProcessType processType, final ConfigurationPersister configurationPersister, final ControlledProcessState processState,
final ResourceDefinition rootResourceDefinition, final ManagedAuditLogger auditLogger,
final AbstractControllerTestBase.DelegatingResourceDefinitionInitializer initializer,
final CapabilityRegistry capabilityRegistry) {
super(processType, new RunningModeControl(RunningMode.NORMAL), configurationPersister, processState, rootResourceDefinition,
null, ExpressionResolver.TEST_RESOLVER, auditLogger, new DelegatingConfigurableAuthorizer(), new ManagementSecurityIdentitySupplier(), capabilityRegistry);
this.processState = processState;
internalExecutor = new InternalExecutor();
this.initializer = initializer;
}
示例6: ModelTestModelControllerService
/**
* This is the constructor to use for core-model/test-controller-7.3.x
*/
protected ModelTestModelControllerService(final ProcessType processType, final RunningModeControl runningModeControl, final TransformerRegistry transformerRegistry,
final StringConfigurationPersister persister, final ModelTestOperationValidatorFilter validateOpsFilter,
final DelegatingResourceDefinition rootResourceDefinition, ControlledProcessState processState, Controller73x version) {
super(processType, runningModeControl, persister,
processState == null ? new ControlledProcessState(true) : processState, rootResourceDefinition, null, ExpressionResolver.TEST_RESOLVER);
this.persister = persister;
this.transformerRegistry = transformerRegistry;
this.validateOpsFilter = validateOpsFilter;
this.runningModeControl = runningModeControl;
}
示例7: TestModelControllerService
protected TestModelControllerService(final ProcessType processType, final ConfigurationPersister configurationPersister, final ControlledProcessState processState,
final ResourceDefinition rootResourceDefinition, final ManagedAuditLogger auditLogger) {
super(processType, new RunningModeControl(RunningMode.NORMAL), configurationPersister, processState, rootResourceDefinition,
null, ExpressionResolver.TEST_RESOLVER, auditLogger, new DelegatingConfigurableAuthorizer(), new ManagementSecurityIdentitySupplier(), new CapabilityRegistry(true));
this.processState = processState;
}
示例8: getExpressionResolver
@Override
public ExpressionResolver getExpressionResolver() {
return ExpressionResolver.TEST_RESOLVER;
}
示例9: PlatformMBeanTestModelControllerService
/**
* Construct a new instance.
*
*/
protected PlatformMBeanTestModelControllerService() {
super(ProcessType.EMBEDDED_SERVER, new RunningModeControl(RunningMode.NORMAL), new NullConfigurationPersister(), new ControlledProcessState(true),
ResourceBuilder.Factory.create(PathElement.pathElement("root"),new NonResolvingResourceDescriptionResolver()).build(), null, ExpressionResolver.TEST_RESOLVER,
AuditLogger.NO_OP_LOGGER, new DelegatingConfigurableAuthorizer(), new ManagementSecurityIdentitySupplier(), new CapabilityRegistry(true));
}