Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package org.jboss.shrinkwrap.descriptor.api.connector10;

public class ApiFluentTest {

public void checkAPI() {
Factory factory = null;
ConnectorDescriptor descr = null;

//
// descr.setIcon(factory.Icon().largeIcon("").smallIcon(""))
// .setLicense(factory.License().description("").licenseRequired("true"))
// .setResourceadapter(factory.Resourceadapter().addAuthenticationMechanism(
// factory.AuthenticationMechanism().credentialInterface("").description("")));

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package org.jboss.shrinkwrap.descriptor.api.connector10;

/**
* This interface defines the contract for the <code> authentication-mechanism </code> xsd type
* @author <a href="mailto:[email protected]">Ralf Battenfeld</a>
* @author <a href="mailto:[email protected]">Andrew Lee Rubinger</a>
*/
public interface AuthenticationMechanism {

public AuthenticationMechanism authenticationMechanismType(String authenticationMechanismType);
public String getAuthenticationMechanismType();
public AuthenticationMechanism removeAuthenticationMechanismType();

public AuthenticationMechanism description(String description);
public String getDescription();
public AuthenticationMechanism removeDescription();

public AuthenticationMechanism credentialInterface(String credentialInterface);
public String getCredentialInterface();
public AuthenticationMechanism removeCredentialInterface();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package org.jboss.shrinkwrap.descriptor.api.connector10;

/**
* This interface defines the contract for the <code> config-property </code> xsd type
* @author <a href="mailto:[email protected]">Ralf Battenfeld</a>
* @author <a href="mailto:[email protected]">Andrew Lee Rubinger</a>
*/
public interface ConfigProperty {

public ConfigProperty configPropertyValue(String configPropertyValue);
public String getConfigPropertyValue();
public ConfigProperty removeConfigPropertyValue();

public ConfigProperty description(String description);
public String getDescription();
public ConfigProperty removeDescription();


public ConfigProperty configPropertyName(String configPropertyName);
public String getConfigPropertyName();
public ConfigProperty removeConfigPropertyName();


public ConfigProperty configPropertyType(String configPropertyType);
public String getConfigPropertyType();
public ConfigProperty removeConfigPropertyType();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package org.jboss.shrinkwrap.descriptor.api.connector10;

import org.jboss.shrinkwrap.descriptor.api.Descriptor;
import org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace;

public interface ConnectorDescriptor extends Descriptor, DescriptorNamespace<ConnectorDescriptor> {

// public ConnectorDescriptor specVersion(String specVersion);
// public String getSpecVersion();
// public ConnectorDescriptor removeSpecVersion();
//
// public ConnectorDescriptor setIcon(final Icon icon);
// public Icon getIcon();
// public ConnectorDescriptor removeIcon();

// public ConnectorDescriptor displayName(String displayName);
// public String getDisplayName();
// public ConnectorDescriptor removeDisplayName();
//
// public ConnectorDescriptor vendorName(String vendorName);
// public String getVendorName();
// public ConnectorDescriptor removeVendorName();

public Factory getFactory();

public ConnectorDescriptor description(String description);
public String getDescription();
public ConnectorDescriptor removeDescription();

// public ConnectorDescriptor eisType(String eisType);
// public String getEisType();
// public ConnectorDescriptor removeEisType();
//
// public ConnectorDescriptor setLicense(final License license);
// public License getLicence();
// public ConnectorDescriptor removeLicense();

public ConnectorDescriptor setResourceadapter(final Resourceadapter resourceadapter);
public Resourceadapter getResourceadapter();
public ConnectorDescriptor removeResourceadapter();

// public ConnectorDescriptor version(String version);
// public String getVersion();
// public ConnectorDescriptor removeVersion();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org.jboss.shrinkwrap.descriptor.api.connector10;

public interface Factory {

// public AuthenticationMechanism AuthenticationMechanism();
public ConfigProperty configProperty();
// public Icon Icon();
// public License License();
public Resourceadapter resourceadapter();
// public SecurityPermission SecurityPermission();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package org.jboss.shrinkwrap.descriptor.api.connector10;

/**
* This interface defines the contract for the <code> icon </code> xsd type
*
* @author <a href="mailto:[email protected]">Ralf Battenfeld</a>
* @author <a href="mailto:[email protected]">Andrew Lee Rubinger</a>
*/
public interface Icon {

public Icon smallIcon(String smallIcon);
public String getSmallIcon();
public Icon removeSmallIcon();

public Icon largeIcon(String largeIcon);
public String getLargeIcon();
public Icon removeLargeIcon();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package org.jboss.shrinkwrap.descriptor.api.connector10;

/**
* This interface defines the contract for the <code> license </code> xsd type
* @author <a href="mailto:[email protected]">Ralf Battenfeld</a>
* @author <a href="mailto:[email protected]">Andrew Lee Rubinger</a>
*/
public interface License {

public License description(String description);
public String getDescription();
public License removeDescription();

public License licenseRequired(String licenseRequired);
public String getLicenseRequired();
public License removeLicenseRequired();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
package org.jboss.shrinkwrap.descriptor.api.connector10;

import java.util.List;

/**
* This interface defines the contract for the <code> resourceadapter </code>
* xsd type
*
* @author <a href="mailto:[email protected]">Ralf Battenfeld</a>
* @author <a href="mailto:[email protected]">Andrew Lee Rubinger</a>
*/
public interface Resourceadapter {

public Resourceadapter connectionInterface(String connectionInterface);
public String getConnectionInterface();
public Resourceadapter removeConnectionInterface();

public Resourceadapter addConfigProperty(final ConfigProperty configProperty);
public List<ConfigProperty> getAllConfigProperty();
public Resourceadapter removeAllConfigProperty();

public Resourceadapter connectionImplClass(String connectionImplClass);
public String getConnectionImplClass();
public Resourceadapter removeConnectionImplClass();

public Resourceadapter connectionfactoryInterface(String connectionfactoryInterface);
public String getConnectionfactoryInterface();
public Resourceadapter removeConnectionfactoryInterface();

public Resourceadapter reauthenticationSupport(String reauthenticationSupport);
public String getReauthenticationSupport();
public Resourceadapter removeReauthenticationSupport();

//
// public Resourceadapter addAuthenticationMechanism(final AuthenticationMechanism authenticationMechanism);
// public List<AuthenticationMechanism> getAllAuthenticationMechanism();
// public Resourceadapter removeAllAuthenticationMechanism();

public Resourceadapter managedconnectionfactoryClass(String managedconnectionfactoryClass);
public String getManagedconnectionfactoryClass();
public Resourceadapter removeManagedconnectionfactoryClass();

public Resourceadapter connectionfactoryImplClass(String connectionfactoryImplClass);
public String getConnectionfactoryImplClass();
public Resourceadapter removeConnectionfactoryImplClass();

public Resourceadapter transactionSupport(String transactionSupport);
public String getTransactionSupport();
public Resourceadapter removeTransactionSupport();
//
// public Resourceadapter addSecurityPermission(final SecurityPermission securityPermission);
// public List<SecurityPermission> getAllSecurityPermission();
// public Resourceadapter removeAllSecurityPermission();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package org.jboss.shrinkwrap.descriptor.api.connector10;

/**
* This interface defines the contract for the <code> security-permission </code> xsd type
* @author <a href="mailto:[email protected]">Ralf Battenfeld</a>
* @author <a href="mailto:[email protected]">Andrew Lee Rubinger</a>
*/
public interface SecurityPermission {

public SecurityPermission securityPermissionSpec(String securityPermissionSpec);
public String getSecurityPermissionSpec();
public SecurityPermission removeSecurityPermissionSpec();

public SecurityPermission description(String description);
public String getDescription();
public SecurityPermission removeDescription();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**
* Provides the interfaces and enumeration types as defined in the schema
*/

package org.jboss.shrinkwrap.descriptor.api.connector10;
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package org.jboss.shrinkwrap.descriptor.impl.connector10;

import org.jboss.shrinkwrap.descriptor.spi.node.Node;

public interface ChildNodeInitializer {

public void initialize(String nodeName, Node node);

public void assign(String nodeName, Node node);
}
Loading