@Test public void testCanHandle() { FromEnvironment resolver = new FromEnvironment(); assertFalse(resolver.canHandle("hello")); assertFalse(resolver.canHandle("%sysprop{java.version}")); assertTrue(resolver.canHandle("%env{PATH}")); }
@Override public boolean canHandle(String value) { return resolverPattern.matcher(value).matches(); }
FromEnvironment extends ResolverImp { @Override public boolean canHandle(String value) { return resolverPattern.matcher(value).matches(); } }
FromEnvironment extends ResolverImp { @Override public boolean canHandle(String value) { return resolverPattern.matcher(value).matches(); } FromEnvironment(); }
FromEnvironment extends ResolverImp { @Override public boolean canHandle(String value) { return resolverPattern.matcher(value).matches(); } FromEnvironment(); @Override String resolve(String s); @Override boolean canHandle(String value); }
FromEnvironment extends ResolverImp { @Override public boolean canHandle(String value) { return resolverPattern.matcher(value).matches(); } FromEnvironment(); @Override String resolve(String s); @Override boolean canHandle(String value);  }